]> granicus.if.org Git - clang/commitdiff
Certain versions of clang require an explicit initialization for literal const members.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sun, 8 Oct 2017 21:28:47 +0000 (21:28 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sun, 8 Oct 2017 21:28:47 +0000 (21:28 +0000)
include/clang/Lex/PreprocessorLexer.h:79:3: error: constructor for
'clang::PreprocessorLexer' must explicitly initialize the const member
'FID'

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@315197 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Lex/PreprocessorLexer.h

index 5c2e4d41454b6f6571a5214e1a1c7be330a7dc02..65021fc2d3dc05261f18a66ddfa8737f8085c3dd 100644 (file)
@@ -77,7 +77,7 @@ protected:
   PreprocessorLexer(Preprocessor *pp, FileID fid);
 
   PreprocessorLexer()
-    : PP(nullptr), InitialNumSLocEntries(0),
+    : PP(nullptr), FID(), InitialNumSLocEntries(0),
       ParsingPreprocessorDirective(false),
       ParsingFilename(false),
       LexingRawMode(false) {}