[cfe-commits] r163429 - /cfe/trunk/tools/clang-check/ClangCheck.cpp

Alexander Kornienko alexfh at google.com
Fri Sep 7 15:44:34 PDT 2012


Author: alexfh
Date: Fri Sep  7 17:44:34 2012
New Revision: 163429

URL: http://llvm.org/viewvc/llvm-project?rev=163429&view=rev
Log:
Fixed http://llvm.org/bugs/show_bug.cgi?id=13777

Modified:
    cfe/trunk/tools/clang-check/ClangCheck.cpp

Modified: cfe/trunk/tools/clang-check/ClangCheck.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-check/ClangCheck.cpp?rev=163429&r1=163428&r2=163429&view=diff
==============================================================================
--- cfe/trunk/tools/clang-check/ClangCheck.cpp (original)
+++ cfe/trunk/tools/clang-check/ClangCheck.cpp Fri Sep  7 17:44:34 2012
@@ -58,7 +58,9 @@
     "ast-dump-filter",
     cl::desc(Options->getOptionHelpText(options::OPT_ast_dump_filter)));
 
-namespace {
+// Anonymous namespace here causes problems with gcc <= 4.4 on MacOS:
+// http://llvm.org/bugs/show_bug.cgi?id=13777
+// namespace {
 class ActionFactory {
 public:
   clang::ASTConsumer *newASTConsumer() {
@@ -71,7 +73,7 @@
     return new clang::ASTConsumer();
   }
 };
-}
+// }
 
 int main(int argc, const char **argv) {
   ActionFactory Factory;





More information about the cfe-commits mailing list