[cfe-commits] r42364 - /cfe/trunk/Driver/clang.cpp

Ted Kremenek kremenek at apple.com
Wed Sep 26 12:42:19 PDT 2007


Author: kremenek
Date: Wed Sep 26 14:42:19 2007
New Revision: 42364

URL: http://llvm.org/viewvc/llvm-project?rev=42364&view=rev
Log:
Moved "VerifyDiagnostics" variable declaration to right below ProgAction
declaration.  This is because this option is logically tightly connected
to the actions defined in ProgAction.

Modified:
    cfe/trunk/Driver/clang.cpp

Modified: cfe/trunk/Driver/clang.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/clang.cpp?rev=42364&r1=42363&r2=42364&view=diff

==============================================================================
--- cfe/trunk/Driver/clang.cpp (original)
+++ cfe/trunk/Driver/clang.cpp Wed Sep 26 14:42:19 2007
@@ -109,6 +109,10 @@
                         "Build ASTs then convert to LLVM, emit .ll file"),
              clEnumValEnd));
 
+static llvm::cl::opt<bool>
+VerifyDiagnostics("verify",
+                  llvm::cl::desc("Verify emitted diagnostics and warnings."));
+
 //===----------------------------------------------------------------------===//
 // Language Options
 //===----------------------------------------------------------------------===//
@@ -346,10 +350,6 @@
 WarnUnusedMacros("Wunused_macros",
          llvm::cl::desc("Warn for unused macros in the main translation unit"));
 
-static llvm::cl::opt<bool>
-VerifyDiagnostics("verify",
-                  llvm::cl::desc("Verify emitted diagnostics and warnings."));
-
 /// InitializeDiagnostics - Initialize the diagnostic object, based on the
 /// current command line option settings.
 static void InitializeDiagnostics(Diagnostic &Diags) {





More information about the cfe-commits mailing list