From: Roman Lebedev Date: Mon, 2 Sep 2019 12:34:21 +0000 (+0000) Subject: [unittests][AST] CommentParser: don't name variable 'DEBUG' X-Git-Tag: llvmorg-11-init~10257 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a1ad72cca7eac7a0e9eed953f7f0da8cf2e63144;p=platform%2Fupstream%2Fllvm.git [unittests][AST] CommentParser: don't name variable 'DEBUG' It's may be an already-defined macro name, resulting in compilation errors. llvm-svn: 370650 --- diff --git a/clang/unittests/AST/CommentParser.cpp b/clang/unittests/AST/CommentParser.cpp index d1f732c..327cabd 100644 --- a/clang/unittests/AST/CommentParser.cpp +++ b/clang/unittests/AST/CommentParser.cpp @@ -28,7 +28,7 @@ namespace comments { namespace { -const bool DEBUG = true; +const bool MY_DEBUG = true; class CommentParserTest : public ::testing::Test { protected: @@ -62,7 +62,7 @@ FullComment *CommentParserTest::parseString(const char *Source) { Parser P(L, S, Allocator, SourceMgr, Diags, Traits); FullComment *FC = P.parseFullComment(); - if (DEBUG) { + if (MY_DEBUG) { llvm::errs() << "=== Source:\n" << Source << "\n=== AST:\n"; FC->dump(llvm::errs(), &Traits, &SourceMgr); }