Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: src/IceDefs.h

Issue 1221643012: Subzero: Add -Wshadow to the build. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 //===- subzero/src/IceDefs.h - Common Subzero declarations ------*- C++ -*-===// 1 //===- subzero/src/IceDefs.h - Common Subzero declarations ------*- C++ -*-===//
2 // 2 //
3 // The Subzero Code Generator 3 // The Subzero Code Generator
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 /// 9 ///
10 /// \file 10 /// \file
11 /// This file declares various useful types and classes that have widespread use 11 /// This file declares various useful types and classes that have widespread use
12 /// across Subzero. Every Subzero source file is expected to include IceDefs.h. 12 /// across Subzero. Every Subzero source file is expected to include IceDefs.h.
13 /// 13 ///
14 //===----------------------------------------------------------------------===// 14 //===----------------------------------------------------------------------===//
15 15
16 #ifndef SUBZERO_SRC_ICEDEFS_H 16 #ifndef SUBZERO_SRC_ICEDEFS_H
17 #define SUBZERO_SRC_ICEDEFS_H 17 #define SUBZERO_SRC_ICEDEFS_H
18 18
19 #include "IceBuildDefs.h" // TODO(stichnot): move into individual files 19 #include "IceBuildDefs.h" // TODO(stichnot): move into individual files
20 #include "IceTLS.h" 20 #include "IceTLS.h"
21 21
22 #pragma clang diagnostic push
23 #pragma clang diagnostic ignored "-Wunused-parameter"
24 #pragma clang diagnostic ignored "-Wshadow"
22 #include "llvm/ADT/ArrayRef.h" 25 #include "llvm/ADT/ArrayRef.h"
23 #include "llvm/ADT/BitVector.h" 26 #include "llvm/ADT/BitVector.h"
24 #include "llvm/ADT/ilist.h" 27 #include "llvm/ADT/ilist.h"
25 #include "llvm/ADT/ilist_node.h" 28 #include "llvm/ADT/ilist_node.h"
26 #include "llvm/ADT/iterator_range.h" 29 #include "llvm/ADT/iterator_range.h"
27 #include "llvm/ADT/SmallBitVector.h" 30 #include "llvm/ADT/SmallBitVector.h"
28 #include "llvm/ADT/SmallVector.h" 31 #include "llvm/ADT/SmallVector.h"
29 #include "llvm/ADT/STLExtras.h" 32 #include "llvm/ADT/STLExtras.h"
30 #include "llvm/Support/Allocator.h" 33 #include "llvm/Support/Allocator.h"
31 #include "llvm/Support/Casting.h" 34 #include "llvm/Support/Casting.h"
32 #include "llvm/Support/ELF.h" 35 #include "llvm/Support/ELF.h"
33 #include "llvm/Support/raw_ostream.h" 36 #include "llvm/Support/raw_ostream.h"
37 #pragma clang diagnostic pop
34 38
35 #include <cassert> 39 #include <cassert>
36 #include <cstdint> 40 #include <cstdint>
37 #include <cstdio> // snprintf 41 #include <cstdio> // snprintf
38 #include <functional> // std::less 42 #include <functional> // std::less
39 #include <limits> 43 #include <limits>
40 #include <list> 44 #include <list>
41 #include <map> 45 #include <map>
42 #include <memory> 46 #include <memory>
43 #include <mutex> 47 #include <mutex>
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 llvm::iterator_range<typename T::reverse_iterator> reverse_range(T &Container) { 270 llvm::iterator_range<typename T::reverse_iterator> reverse_range(T &Container) {
267 return llvm::make_range(Container.rbegin(), Container.rend()); 271 return llvm::make_range(Container.rbegin(), Container.rend());
268 } 272 }
269 273
270 /// Options for pooling and randomization of immediates. 274 /// Options for pooling and randomization of immediates.
271 enum RandomizeAndPoolImmediatesEnum { RPI_None, RPI_Randomize, RPI_Pool }; 275 enum RandomizeAndPoolImmediatesEnum { RPI_None, RPI_Randomize, RPI_Pool };
272 276
273 } // end of namespace Ice 277 } // end of namespace Ice
274 278
275 #endif // SUBZERO_SRC_ICEDEFS_H 279 #endif // SUBZERO_SRC_ICEDEFS_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698