| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
llvm-svn: 110432
|
|
|
|
| |
llvm-svn: 110414
|
|
|
|
| |
llvm-svn: 110378
|
|
|
|
| |
llvm-svn: 110357
|
|
|
|
|
|
|
|
| |
end of the translation unit that
included the PCH, as God intended.
llvm-svn: 110324
|
|
|
|
| |
llvm-svn: 110323
|
|
|
|
|
|
| |
loaded from PCH.
llvm-svn: 110322
|
|
|
|
|
|
|
|
|
| |
flags enumeration + default-generating function that allows
code-completion to be customized via the libclang API.
Plus, turn on spell-checking when performing code completion.
llvm-svn: 110319
|
|
|
|
| |
llvm-svn: 110315
|
|
|
|
| |
llvm-svn: 110262
|
|
|
|
| |
llvm-svn: 110247
|
|
|
|
|
|
| |
about method pool hits for the moment.
llvm-svn: 110245
|
|
|
|
| |
llvm-svn: 110229
|
|
|
|
| |
llvm-svn: 110219
|
|
|
|
|
|
|
| |
file buffers until the code completion results are destroyed;
diagnostics may end up referring into the source.
llvm-svn: 110216
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
completion within the translation unit using the same command-line
arguments for parsing the translation unit. Eventually, we'll reuse
the precompiled preamble to improve code-completion performance, and
this also gives us a place to cache results.
Expose this function via the new libclang function
clang_codeCompleteAt(), which performs the code completion within a
CXTranslationUnit. The completion occurs in-process
(clang_codeCompletion() runs code completion out-of-process).
llvm-svn: 110210
|
|
|
|
|
|
|
|
|
| |
short "cooling off" period (defaulting to 5 reparses) before trying to
build a precompiled preamble again. Previously, if we failed to build
the precompiled preamble at any time, we just gave up the whole
charade any never tried again.
llvm-svn: 110187
|
|
|
|
|
|
| |
Store all selectors in the selector hash table instead of only those from the method pool.
llvm-svn: 110158
|
|
|
|
|
|
|
|
|
|
| |
declarations that we saw when creating the precompiled preamble, and
provide those declarations in addition to the declarations parsed in
the main source file when traversing top-level declarations. This
makes the use of precompiled preambles a pure optimization, rather
than changing the semantics of the parsed translation unit.
llvm-svn: 110131
|
|
|
|
| |
llvm-svn: 110126
|
|
|
|
|
|
|
|
|
|
|
|
| |
store/retrieve the most recent
redeclaration. That way we are sure that the full redeclarations chain is loaded.
When using chained PCHs, first declarations point to the most recent redeclarations in the same PCH.
To address this use a REDECLS_UPDATE_LATEST record block to keep track of which first declarations need
to point to a most recent redeclaration in another PCH.
llvm-svn: 110125
|
|
|
|
| |
llvm-svn: 110123
|
|
|
|
| |
llvm-svn: 110122
|
|
|
|
| |
llvm-svn: 110116
|
|
|
|
|
|
| |
it while generating precompiled preambles. No functionality change.
llvm-svn: 110108
|
|
|
|
|
|
| |
analysis) that doesn't prune CFG edges.
llvm-svn: 110087
|
|
|
|
| |
llvm-svn: 110078
|
|
|
|
|
|
|
|
| |
creating the preamble and "replay" them when reusing the
preamble. Also, fix a thinko in the copying of the preamble when
building the precompiled preamble.
llvm-svn: 110061
|
|
|
|
|
|
| |
this version holds the entire declaration chain. This is a much saner solution than trying to merge the info from all elements, and makes redeclarations work properly. Expand the declarations test case to cover more compliated cases.
llvm-svn: 110052
|
|
|
|
|
|
| |
for them that will deserialize them when needed.
llvm-svn: 110031
|
|
|
|
|
|
| |
Gray.
llvm-svn: 109994
|
|
|
|
|
|
|
| |
the files in the precompiled preamble have changed since it was build,
force the preamble to be rebuilt.
llvm-svn: 109937
|
|
|
|
|
|
| |
environment variable is set.
llvm-svn: 109890
|
|
|
|
| |
llvm-svn: 109867
|
|
|
|
|
|
|
|
|
|
| |
-Replace CurrentlyLoadingTypeOrDecl with a counting scheme (NumCurrentElementsDeserializing)
-Provide outside access to the mechanism by adding methods StartedDeserializing/FinishedDeserializing
to ExternalASTSource.
These are preparation for the next commit.
llvm-svn: 109856
|
|
|
|
|
|
| |
PCHReader and PCHWriter are initialized to correctly pick up all initializer. On the upside, this means that there is far less repetition in the dependent PCH now.
llvm-svn: 109823
|
|
|
|
|
|
| |
functionality change.
llvm-svn: 109797
|
|
|
|
| |
llvm-svn: 109785
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
CodeGenModule::MayDeferGeneration into a new function,
DeclIsRequiredFunctionOrFileScopedVar.
This is essentially a CodeGen predicate that is also needed by the PCH mechanism to determine whether a decl
needs to be deserialized during PCH loading for codegen purposes.
Since this logic is shared by CodeGen and the PCH mechanism, move it to the ASTContext,
thus CodeGenModule's GetLinkageForFunction/GetLinkageForVariable and the GVALinkage enum is moved out of CodeGen.
This fixes current (and avoids future) codegen-from-PCH bugs.
llvm-svn: 109784
|
|
|
|
|
|
|
| |
This patch adds a Latest field to RedeclarableTemplateDecl's CommonBase
class which is used to store the latest redeclaration.
llvm-svn: 109755
|
|
|
|
|
|
|
|
|
|
|
| |
This patch refactors much of the common code in ClassTemplateDecl and
FunctionTemplateDecl into a common base class RedeclarableTemplateDecl
together with support functions in a template class RedeclarableTemplate.
The patch also includes similar refactoring for these classes' PCH
reader and writer implementations.
llvm-svn: 109754
|
|
|
|
| |
llvm-svn: 109680
|
|
|
|
| |
llvm-svn: 109675
|
|
|
|
|
|
| |
PCHs; tests for this to follow.
llvm-svn: 109554
|
|
|
|
| |
llvm-svn: 109550
|
|
|
|
|
|
|
|
|
|
|
|
| |
CodeGenModule::MayDeferGeneration into a new function,
DeclIsRequiredFunctionOrFileScopedVar.
This function is part of the public CodeGen interface since it's essentially a CodeGen predicate that is also
needed by the PCH mechanism to determine whether a decl needs to be deserialized during PCH loading for codegen purposes.
This fixes current (and avoids future) codegen-from-PCH bugs.
llvm-svn: 109546
|
|
|
|
|
|
| |
-ast-print show the decls from the dependent PCH.
llvm-svn: 109524
|
|
|
|
| |
llvm-svn: 109505
|
|
|
|
|
|
|
|
| |
constructor/destructor.
Fixes http://llvm.org/PR7692
llvm-svn: 109501
|
|
|
|
|
|
| |
unbreaks using PTH with Boost (<rdar://problem/8227989>).
llvm-svn: 109484
|