projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
528f681
)
[unittests][AST] CommentParser: don't name variable 'DEBUG'
author
Roman Lebedev
<lebedev.ri@gmail.com>
Mon, 2 Sep 2019 12:34:21 +0000
(12:34 +0000)
committer
Roman Lebedev
<lebedev.ri@gmail.com>
Mon, 2 Sep 2019 12:34:21 +0000
(12:34 +0000)
It's may be an already-defined macro name,
resulting in compilation errors.
llvm-svn: 370650
clang/unittests/AST/CommentParser.cpp
patch
|
blob
|
history
diff --git
a/clang/unittests/AST/CommentParser.cpp
b/clang/unittests/AST/CommentParser.cpp
index
d1f732c
..
327cabd
100644
(file)
--- 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);
}