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

Side by Side Diff: src/IceClFlags.cpp

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/IceClFlags.cpp - Command line flags and parsing --------===// 1 //===- subzero/src/IceClFlags.cpp - Command line flags and parsing --------===//
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 defines commandline flags parsing. 11 /// This file defines commandline flags parsing.
12 /// This currently relies on llvm::cl to parse. In the future, the minimal 12 /// This currently relies on llvm::cl to parse. In the future, the minimal
13 /// build can have a simpler parser. 13 /// build can have a simpler parser.
14 /// 14 ///
15 //===----------------------------------------------------------------------===// 15 //===----------------------------------------------------------------------===//
16 16
17 #include "IceClFlags.h" 17 #include "IceClFlags.h"
18 18
19 #include "IceClFlagsExtra.h" 19 #include "IceClFlagsExtra.h"
20 20
21 #pragma clang diagnostic push 21 #pragma clang diagnostic push
22 #pragma clang diagnostic ignored "-Wunused-parameter" 22 #pragma clang diagnostic ignored "-Wunused-parameter"
23 #pragma clang diagnostic ignored "-Wshadow"
23 #include "llvm/Support/CommandLine.h" 24 #include "llvm/Support/CommandLine.h"
24 #pragma clang diagnostic pop 25 #pragma clang diagnostic pop
25 26
26 namespace cl = llvm::cl; 27 namespace cl = llvm::cl;
27 28
28 // Options which are captured in Ice::ClFlags and propagated. 29 // Options which are captured in Ice::ClFlags and propagated.
29 30
30 namespace { 31 namespace {
31 32
32 cl::opt<bool> AllowErrorRecovery( 33 cl::opt<bool> AllowErrorRecovery(
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 OutFlagsExtra.setGenerateBuildAtts(GenerateBuildAtts); 433 OutFlagsExtra.setGenerateBuildAtts(GenerateBuildAtts);
433 OutFlagsExtra.setLLVMVerboseErrors(LLVMVerboseErrors); 434 OutFlagsExtra.setLLVMVerboseErrors(LLVMVerboseErrors);
434 OutFlagsExtra.setAppName(AppName); 435 OutFlagsExtra.setAppName(AppName);
435 OutFlagsExtra.setInputFileFormat(InputFileFormat); 436 OutFlagsExtra.setInputFileFormat(InputFileFormat);
436 OutFlagsExtra.setIRFilename(IRFilename); 437 OutFlagsExtra.setIRFilename(IRFilename);
437 OutFlagsExtra.setLogFilename(LogFilename); 438 OutFlagsExtra.setLogFilename(LogFilename);
438 OutFlagsExtra.setOutputFilename(OutputFilename); 439 OutFlagsExtra.setOutputFilename(OutputFilename);
439 } 440 }
440 441
441 } // end of namespace Ice 442 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceCfgNode.cpp ('k') | src/IceClFlagsExtra.h » ('j') | src/IceConverter.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698