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:
e0f5031
)
[clang] Modernize ASTConsumer (NFC)
author
Kazu Hirata
<kazu@google.com>
Sun, 16 Apr 2023 20:46:11 +0000
(13:46 -0700)
committer
Kazu Hirata
<kazu@google.com>
Sun, 16 Apr 2023 20:46:11 +0000
(13:46 -0700)
Identified with modernize-use-default-member-init.
clang/include/clang/AST/ASTConsumer.h
patch
|
blob
|
history
diff --git
a/clang/include/clang/AST/ASTConsumer.h
b/clang/include/clang/AST/ASTConsumer.h
index
21850e8
..
ebcd805
100644
(file)
--- a/
clang/include/clang/AST/ASTConsumer.h
+++ b/
clang/include/clang/AST/ASTConsumer.h
@@
-33,12
+33,12
@@
namespace clang {
class ASTConsumer {
/// Whether this AST consumer also requires information about
/// semantic analysis.
- bool SemaConsumer;
+ bool SemaConsumer
= false
;
friend class SemaConsumer;
public:
- ASTConsumer()
: SemaConsumer(false) { }
+ ASTConsumer()
= default;
virtual ~ASTConsumer() {}