@@ -130,8 +130,7 @@ class ASTReaderListener {
130
130
// /
131
131
// / \returns true to indicate the options are invalid or false otherwise.
132
132
virtual bool ReadLanguageOptions (const LangOptions &LangOpts,
133
- StringRef ModuleFilename,
134
- bool Complain,
133
+ StringRef ModuleFilename, bool Complain,
135
134
bool AllowCompatibleDifferences) {
136
135
return false ;
137
136
}
@@ -140,7 +139,8 @@ class ASTReaderListener {
140
139
// /
141
140
// / \returns true to indicate the target options are invalid, or false
142
141
// / otherwise.
143
- virtual bool ReadTargetOptions (const TargetOptions &TargetOpts, StringRef ModuleFilename, bool Complain,
142
+ virtual bool ReadTargetOptions (const TargetOptions &TargetOpts,
143
+ StringRef ModuleFilename, bool Complain,
144
144
bool AllowCompatibleDifferences) {
145
145
return false ;
146
146
}
@@ -151,8 +151,7 @@ class ASTReaderListener {
151
151
// / otherwise.
152
152
virtual bool
153
153
ReadDiagnosticOptions (IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts,
154
- StringRef ModuleFilename,
155
- bool Complain) {
154
+ StringRef ModuleFilename, bool Complain) {
156
155
return false ;
157
156
}
158
157
@@ -266,13 +265,14 @@ class ChainedASTReaderListener : public ASTReaderListener {
266
265
bool ReadFullVersionInformation (StringRef FullVersion) override ;
267
266
void ReadModuleName (StringRef ModuleName) override ;
268
267
void ReadModuleMapFile (StringRef ModuleMapPath) override ;
269
- bool ReadLanguageOptions (const LangOptions &LangOpts, StringRef ModuleFilename, bool Complain,
268
+ bool ReadLanguageOptions (const LangOptions &LangOpts,
269
+ StringRef ModuleFilename, bool Complain,
270
270
bool AllowCompatibleDifferences) override ;
271
- bool ReadTargetOptions (const TargetOptions &TargetOpts, StringRef ModuleFilename, bool Complain,
271
+ bool ReadTargetOptions (const TargetOptions &TargetOpts,
272
+ StringRef ModuleFilename, bool Complain,
272
273
bool AllowCompatibleDifferences) override ;
273
274
bool ReadDiagnosticOptions (IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts,
274
- StringRef ModuleFilename,
275
- bool Complain) override ;
275
+ StringRef ModuleFilename, bool Complain) override ;
276
276
bool ReadFileSystemOptions (const FileSystemOptions &FSOpts,
277
277
bool Complain) override ;
278
278
@@ -281,8 +281,8 @@ class ChainedASTReaderListener : public ASTReaderListener {
281
281
StringRef SpecificModuleCachePath,
282
282
bool Complain) override ;
283
283
bool ReadPreprocessorOptions (const PreprocessorOptions &PPOpts,
284
- StringRef ModuleFilename,
285
- bool ReadMacros, bool Complain,
284
+ StringRef ModuleFilename, bool ReadMacros,
285
+ bool Complain,
286
286
std::string &SuggestedPredefines) override ;
287
287
288
288
void ReadCounter (const serialization::ModuleFile &M, unsigned Value) override ;
@@ -306,16 +306,17 @@ class PCHValidator : public ASTReaderListener {
306
306
PCHValidator (Preprocessor &PP, ASTReader &Reader)
307
307
: PP(PP), Reader(Reader) {}
308
308
309
- bool ReadLanguageOptions (const LangOptions &LangOpts, StringRef ModuleFilename, bool Complain,
309
+ bool ReadLanguageOptions (const LangOptions &LangOpts,
310
+ StringRef ModuleFilename, bool Complain,
310
311
bool AllowCompatibleDifferences) override ;
311
- bool ReadTargetOptions (const TargetOptions &TargetOpts, StringRef ModuleFilename, bool Complain,
312
+ bool ReadTargetOptions (const TargetOptions &TargetOpts,
313
+ StringRef ModuleFilename, bool Complain,
312
314
bool AllowCompatibleDifferences) override ;
313
315
bool ReadDiagnosticOptions (IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts,
314
- StringRef ModuleFilename,
315
- bool Complain) override ;
316
+ StringRef ModuleFilename, bool Complain) override ;
316
317
bool ReadPreprocessorOptions (const PreprocessorOptions &PPOpts,
317
- StringRef ModuleFilename,
318
- bool ReadMacros, bool Complain,
318
+ StringRef ModuleFilename, bool ReadMacros,
319
+ bool Complain,
319
320
std::string &SuggestedPredefines) override ;
320
321
bool ReadHeaderSearchOptions (const HeaderSearchOptions &HSOpts,
321
322
StringRef ModuleFilename,
@@ -335,8 +336,8 @@ class SimpleASTReaderListener : public ASTReaderListener {
335
336
SimpleASTReaderListener (Preprocessor &PP) : PP(PP) {}
336
337
337
338
bool ReadPreprocessorOptions (const PreprocessorOptions &PPOpts,
338
- StringRef ModuleFilename,
339
- bool ReadMacros, bool Complain,
339
+ StringRef ModuleFilename, bool ReadMacros,
340
+ bool Complain,
340
341
std::string &SuggestedPredefines) override ;
341
342
};
342
343
@@ -1377,10 +1378,12 @@ class ASTReader
1377
1378
SmallVectorImpl<ImportedModule> &Loaded,
1378
1379
const ModuleFile *ImportedBy,
1379
1380
unsigned ClientLoadCapabilities);
1380
- static ASTReadResult ReadOptionsBlock (
1381
- llvm::BitstreamCursor &Stream, StringRef Filename, unsigned ClientLoadCapabilities,
1382
- bool AllowCompatibleConfigurationMismatch, ASTReaderListener &Listener,
1383
- std::string &SuggestedPredefines);
1381
+ static ASTReadResult
1382
+ ReadOptionsBlock (llvm::BitstreamCursor &Stream, StringRef Filename,
1383
+ unsigned ClientLoadCapabilities,
1384
+ bool AllowCompatibleConfigurationMismatch,
1385
+ ASTReaderListener &Listener,
1386
+ std::string &SuggestedPredefines);
1384
1387
1385
1388
// / Read the unhashed control block.
1386
1389
// /
@@ -1389,13 +1392,11 @@ class ASTReader
1389
1392
ASTReadResult readUnhashedControlBlock (ModuleFile &F, bool WasImportedBy,
1390
1393
unsigned ClientLoadCapabilities);
1391
1394
1392
- static ASTReadResult
1393
- readUnhashedControlBlockImpl (ModuleFile *F, llvm::StringRef StreamData,
1394
- StringRef Filename,
1395
- unsigned ClientLoadCapabilities,
1396
- bool AllowCompatibleConfigurationMismatch,
1397
- ASTReaderListener *Listener,
1398
- bool ValidateDiagnosticOptions);
1395
+ static ASTReadResult readUnhashedControlBlockImpl (
1396
+ ModuleFile *F, llvm::StringRef StreamData, StringRef Filename,
1397
+ unsigned ClientLoadCapabilities,
1398
+ bool AllowCompatibleConfigurationMismatch, ASTReaderListener *Listener,
1399
+ bool ValidateDiagnosticOptions);
1399
1400
1400
1401
llvm::Error ReadASTBlock (ModuleFile &F, unsigned ClientLoadCapabilities);
1401
1402
llvm::Error ReadExtensionBlock (ModuleFile &F);
@@ -1408,21 +1409,26 @@ class ASTReader
1408
1409
unsigned ClientLoadCapabilities);
1409
1410
llvm::Error ReadSubmoduleBlock (ModuleFile &F,
1410
1411
unsigned ClientLoadCapabilities);
1411
- static bool ParseLanguageOptions (const RecordData &Record, StringRef ModuleFilename, bool Complain,
1412
+ static bool ParseLanguageOptions (const RecordData &Record,
1413
+ StringRef ModuleFilename, bool Complain,
1412
1414
ASTReaderListener &Listener,
1413
1415
bool AllowCompatibleDifferences);
1414
- static bool ParseTargetOptions (const RecordData &Record, StringRef ModuleFilename, bool Complain,
1416
+ static bool ParseTargetOptions (const RecordData &Record,
1417
+ StringRef ModuleFilename, bool Complain,
1415
1418
ASTReaderListener &Listener,
1416
1419
bool AllowCompatibleDifferences);
1417
- static bool ParseDiagnosticOptions (const RecordData &Record, StringRef ModuleFilename, bool Complain,
1420
+ static bool ParseDiagnosticOptions (const RecordData &Record,
1421
+ StringRef ModuleFilename, bool Complain,
1418
1422
ASTReaderListener &Listener);
1419
1423
static bool ParseFileSystemOptions (const RecordData &Record, bool Complain,
1420
1424
ASTReaderListener &Listener);
1421
- static bool ParseHeaderSearchOptions (const RecordData &Record, StringRef ModuleFilename, bool Complain,
1425
+ static bool ParseHeaderSearchOptions (const RecordData &Record,
1426
+ StringRef ModuleFilename, bool Complain,
1422
1427
ASTReaderListener &Listener);
1423
1428
static bool ParseHeaderSearchPaths (const RecordData &Record, bool Complain,
1424
1429
ASTReaderListener &Listener);
1425
- static bool ParsePreprocessorOptions (const RecordData &Record, StringRef ModuleFilename, bool Complain,
1430
+ static bool ParsePreprocessorOptions (const RecordData &Record,
1431
+ StringRef ModuleFilename, bool Complain,
1426
1432
ASTReaderListener &Listener,
1427
1433
std::string &SuggestedPredefines);
1428
1434
0 commit comments