Lines Matching full:preamble
230 /// After failing to build a precompiled preamble (due to
231 /// errors in the source that occurs in the preamble), the number of
233 /// preamble.
1155 assert(Preamble && in Parse()
1156 "No preamble was built, but OverrideMainBuffer is not null"); in Parse()
1157 Preamble->AddImplicitPreamble(*CCInvocation, VFS, OverrideMainBuffer.get()); in Parse()
1168 // Remove the overridden buffer we used for the preamble. in Parse()
1227 // If the main file has been overridden due to the use of a preamble, in Parse()
1228 // make that override happen and introduce the preamble. in Parse()
1318 /// Attempt to build or re-use a precompiled preamble when (re-)parsing
1321 /// This routine will compute the preamble of the main source file. If a
1322 /// non-trivial preamble is found, it will precompile that preamble into a
1323 /// precompiled header so that the precompiled preamble can be used to reduce
1324 /// reparsing time. If a precompiled preamble has already been constructed,
1326 /// rebuilding the precompiled preamble.
1329 /// allowed to rebuild the precompiled preamble if it is found to be
1333 /// can occur within the preamble.
1335 /// \returns If the precompiled preamble can be used, returns a newly-allocated
1357 if (Preamble) { in getMainBufferWithPrecompiledPreamble()
1358 if (Preamble->CanReuse(PreambleInvocationIn, *MainFileBuffer, Bounds, in getMainBufferWithPrecompiledPreamble()
1360 // Okay! We can re-use the precompiled preamble. in getMainBufferWithPrecompiledPreamble()
1363 // after parsing the preamble. in getMainBufferWithPrecompiledPreamble()
1372 Preamble.reset(); in getMainBufferWithPrecompiledPreamble()
1380 // If the preamble rebuild counter > 1, it's because we previously in getMainBufferWithPrecompiledPreamble()
1381 // failed to build a preamble and we're not yet ready to try in getMainBufferWithPrecompiledPreamble()
1388 assert(!Preamble && "No Preamble should be stored at that point"); in getMainBufferWithPrecompiledPreamble()
1389 // If we aren't allowed to rebuild the precompiled preamble, just in getMainBufferWithPrecompiledPreamble()
1405 // We did not previously compute a preamble, or it can't be reused anyway. in getMainBufferWithPrecompiledPreamble()
1407 PreambleTimer.setOutput("Precompiling preamble"); in getMainBufferWithPrecompiledPreamble()
1411 if (SkipFunctionBodies == SkipFunctionBodiesScope::Preamble) in getMainBufferWithPrecompiledPreamble()
1423 Preamble = std::move(*NewPreamble); in getMainBufferWithPrecompiledPreamble()
1443 assert(Preamble && "Preamble wasn't built"); in getMainBufferWithPrecompiledPreamble()
1456 // entities the last time we rebuilt the preamble, clear out the completion in getMainBufferWithPrecompiledPreamble()
1467 assert(Preamble && "Should only be called when preamble was built"); in RealizeTopLevelDeclsFromPreamble()
1471 // The module file of the preamble. in RealizeTopLevelDeclsFromPreamble()
1891 // If we have a preamble file lying around, or if we might try to in Reparse()
1892 // build a precompiled preamble, do so now. in Reparse()
1894 if (Preamble || PreambleRebuildCountdown > 0) in Reparse()
2291 // If we have a precompiled preamble, try to use it. We only allow in CodeComplete()
2292 // the use of the precompiled preamble if we're if the completion in CodeComplete()
2294 // preamble. in CodeComplete()
2296 if (Preamble && Line > 1 && hasSameUniqueID(File, OriginalSourceFile)) { in CodeComplete()
2301 // If the main file has been overridden due to the use of a preamble, in CodeComplete()
2302 // make that override happen and introduce the preamble. in CodeComplete()
2304 assert(Preamble && in CodeComplete()
2305 "No preamble was built, but OverrideMainBuffer is not null"); in CodeComplete()
2309 Preamble->AddImplicitPreamble(Clang->getInvocation(), VFS, in CodeComplete()
2535 /// If \arg Loc is a loaded location from the preamble, returns
2543 if (Loc.isInvalid() || !Preamble || PreambleID.isInvalid()) in mapLocationFromPreamble()
2547 if (SourceMgr->isInFileID(Loc, PreambleID, &Offs) && Offs < Preamble->getBounds().Size) { in mapLocationFromPreamble()
2557 /// preamble chunk, returns the corresponding loaded location from the
2558 /// preamble, otherwise it returns \arg Loc.
2564 if (Loc.isInvalid() || !Preamble || PreambleID.isInvalid()) in mapLocationToPreamble()
2569 Offs < Preamble->getBounds().Size) { in mapLocationToPreamble()