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:
dd74f48
)
[NFCI] Always initialize const members of AttributeCommonInfo
author
Alex Langford
<apl@fb.com>
Fri, 20 Sep 2019 00:16:32 +0000
(
00:16
+0000)
committer
Alex Langford
<apl@fb.com>
Fri, 20 Sep 2019 00:16:32 +0000
(
00:16
+0000)
Some compilers require that const fields of an object must be explicitly
initialized by the constructor. I ran into this issue building with
clang 3.8 on Ubuntu 16.04.
llvm-svn: 372363
clang/include/clang/Basic/AttributeCommonInfo.h
patch
|
blob
|
history
diff --git
a/clang/include/clang/Basic/AttributeCommonInfo.h
b/clang/include/clang/Basic/AttributeCommonInfo.h
index
c8fc0a5
..
545e7e9
100644
(file)
--- a/
clang/include/clang/Basic/AttributeCommonInfo.h
+++ b/
clang/include/clang/Basic/AttributeCommonInfo.h
@@
-74,11
+74,11
@@
protected:
public:
AttributeCommonInfo(SourceRange AttrRange)
- : AttrRange(AttrRange), AttrKind(0), SyntaxUsed(0),
+ : AttrRange(AttrRange),
ScopeLoc(),
AttrKind(0), SyntaxUsed(0),
SpellingIndex(SpellingNotCalculated) {}
AttributeCommonInfo(SourceLocation AttrLoc)
- : AttrRange(AttrLoc), AttrKind(0), SyntaxUsed(0),
+ : AttrRange(AttrLoc),
ScopeLoc(),
AttrKind(0), SyntaxUsed(0),
SpellingIndex(SpellingNotCalculated) {}
AttributeCommonInfo(const IdentifierInfo *AttrName,