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:
564ddf9
)
[clang] Modernize ModuleDeclSeq (NFC)
author
Kazu Hirata
<kazu@google.com>
Sun, 16 Apr 2023 21:48:18 +0000
(14:48 -0700)
committer
Kazu Hirata
<kazu@google.com>
Sun, 16 Apr 2023 21:48:18 +0000
(14:48 -0700)
Identified with modernize-use-default-member-init.
clang/include/clang/Lex/Preprocessor.h
patch
|
blob
|
history
diff --git
a/clang/include/clang/Lex/Preprocessor.h
b/clang/include/clang/Lex/Preprocessor.h
index
a7ba486
..
a34a451
100644
(file)
--- a/
clang/include/clang/Lex/Preprocessor.h
+++ b/
clang/include/clang/Lex/Preprocessor.h
@@
-499,7
+499,7
@@
private:
};
public:
- ModuleDeclSeq()
: State(NotAModuleDecl) {}
+ ModuleDeclSeq()
= default;
void handleExport() {
if (State == NotAModuleDecl)
@@
-586,7
+586,7
@@
private:
}
private:
- ModuleDeclState State;
+ ModuleDeclState State
= NotAModuleDecl
;
std::string Name;
};