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 &&
1156 "No preamble was built, but OverrideMainBuffer is not null");
1157 Preamble->AddImplicitPreamble(*CCInvocation, VFS, OverrideMainBuffer.get());
1168 // Remove the overridden buffer we used for the preamble.
1227 // If the main file has been overridden due to the use of a preamble,
1228 // make that override happen and introduce the preamble.
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) {
1358 if (Preamble->CanReuse(PreambleInvocationIn, *MainFileBuffer, Bounds,
1360 // Okay! We can re-use the precompiled preamble.
1363 // after parsing the preamble.
1372 Preamble.reset();
1380 // If the preamble rebuild counter > 1, it's because we previously
1381 // failed to build a preamble and we're not yet ready to try
1388 assert(!Preamble && "No Preamble should be stored at that point");
1389 // If we aren't allowed to rebuild the precompiled preamble, just
1405 // We did not previously compute a preamble, or it can't be reused anyway.
1407 PreambleTimer.setOutput("Precompiling preamble");
1411 if (SkipFunctionBodies == SkipFunctionBodiesScope::Preamble)
1423 Preamble = std::move(*NewPreamble);
1443 assert(Preamble && "Preamble wasn't built");
1456 // entities the last time we rebuilt the preamble, clear out the completion
1467 assert(Preamble && "Should only be called when preamble was built");
1471 // The module file of the preamble.
1891 // If we have a preamble file lying around, or if we might try to
1892 // build a precompiled preamble, do so now.
1894 if (Preamble || PreambleRebuildCountdown > 0)
2291 // If we have a precompiled preamble, try to use it. We only allow
2292 // the use of the precompiled preamble if we're if the completion
2294 // preamble.
2296 if (Preamble && Line > 1 && hasSameUniqueID(File, OriginalSourceFile)) {
2301 // If the main file has been overridden due to the use of a preamble,
2302 // make that override happen and introduce the preamble.
2304 assert(Preamble &&
2305 "No preamble was built, but OverrideMainBuffer is not null");
2309 Preamble->AddImplicitPreamble(Clang->getInvocation(), VFS,
2535 /// If \arg Loc is a loaded location from the preamble, returns
2543 if (Loc.isInvalid() || !Preamble || PreambleID.isInvalid())
2547 if (SourceMgr->isInFileID(Loc, PreambleID, &Offs) && Offs < Preamble->getBounds().Size) {
2557 /// preamble chunk, returns the corresponding loaded location from the
2558 /// preamble, otherwise it returns \arg Loc.
2564 if (Loc.isInvalid() || !Preamble || PreambleID.isInvalid())
2569 Offs < Preamble->getBounds().Size) {