forked from OSchip/llvm-project
[NFCI] Always initialize const members of AttributeCommonInfo
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
This commit is contained in:
parent
dd74f4839b
commit
466fb68fce
|
@ -74,11 +74,11 @@ protected:
|
||||||
|
|
||||||
public:
|
public:
|
||||||
AttributeCommonInfo(SourceRange AttrRange)
|
AttributeCommonInfo(SourceRange AttrRange)
|
||||||
: AttrRange(AttrRange), AttrKind(0), SyntaxUsed(0),
|
: AttrRange(AttrRange), ScopeLoc(), AttrKind(0), SyntaxUsed(0),
|
||||||
SpellingIndex(SpellingNotCalculated) {}
|
SpellingIndex(SpellingNotCalculated) {}
|
||||||
|
|
||||||
AttributeCommonInfo(SourceLocation AttrLoc)
|
AttributeCommonInfo(SourceLocation AttrLoc)
|
||||||
: AttrRange(AttrLoc), AttrKind(0), SyntaxUsed(0),
|
: AttrRange(AttrLoc), ScopeLoc(), AttrKind(0), SyntaxUsed(0),
|
||||||
SpellingIndex(SpellingNotCalculated) {}
|
SpellingIndex(SpellingNotCalculated) {}
|
||||||
|
|
||||||
AttributeCommonInfo(const IdentifierInfo *AttrName,
|
AttributeCommonInfo(const IdentifierInfo *AttrName,
|
||||||
|
|
Loading…
Reference in New Issue