History log of /llvm-project/clang/lib/Frontend/CompilerInstance.cpp (Results 626 – 650 of 684)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 135bcc79 17-Aug-2010 Sebastian Redl <sebastian.redl@getdesigned.at>

Reintroduce the serialization library, with fixed dependencies.

llvm-svn: 111279


# 256a7282 17-Aug-2010 Douglas Gregor <dgregor@apple.com>

Revert Sebastian's build-breaking patch.

llvm-svn: 111265


# 52ce9bb2 17-Aug-2010 Sebastian Redl <sebastian.redl@getdesigned.at>

Create a new Serialization module that contains all the PCH code, and will contain all the module code in the future. Update the Makefiles, CMake projects and the Xcode project. I hope I did everythi

Create a new Serialization module that contains all the PCH code, and will contain all the module code in the future. Update the Makefiles, CMake projects and the Xcode project. I hope I did everything right for Xcode. No functionality change.

llvm-svn: 111258

show more ...


# 39982197 15-Aug-2010 Douglas Gregor <dgregor@apple.com>

Extend the code-completion caching infrastructure to include global
declarations (in addition to macros). Each kind of declaration maps to
a certain set of completion contexts, and the ASTUnit comple

Extend the code-completion caching infrastructure to include global
declarations (in addition to macros). Each kind of declaration maps to
a certain set of completion contexts, and the ASTUnit completion logic
introduces the completion strings for those declarations if the actual
code-completion occurs in one of the contexts where it matters.

There are a few new code-completion-context kinds. Without these,
certain completions (e.g., after "using namespace") would need to
suppress all global completions, which would be unfortunate.

Note that we don't get the priorities right for global completions,
because we don't have enough type information. We'll need a way to
compare types in an ASTContext-agnostic way before this can be
implemented.

llvm-svn: 111093

show more ...


# e525b4e2 13-Aug-2010 Douglas Gregor <dgregor@apple.com>

The Sema object will get destroyed before all of the others anyway. We don't need to force it

llvm-svn: 110993


# 0e93f017 12-Aug-2010 Douglas Gregor <dgregor@apple.com>

Teach CompilerInstance to create and hold on to the Sema object used
for parsing, so that it can persist beyond the lifetime of the parsing
call.

llvm-svn: 110978


# 8e984da8 04-Aug-2010 Douglas Gregor <dgregor@apple.com>

Add code-completion support directly to ASTUnit, which performs code
completion within the translation unit using the same command-line
arguments for parsing the translation unit. Eventually, we'll r

Add code-completion support directly to ASTUnit, which performs code
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

show more ...


# 07a89a83 30-Jul-2010 Sebastian Redl <sebastian.redl@getdesigned.at>

Make macro weirdness in chained PCH work. This required changing the way PCHReader and PCHWriter are initialized to correctly pick up all initializer. On the upside, this means that there is far less

Make macro weirdness in chained PCH work. This required changing the way 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

show more ...


# ce3a8293 27-Jul-2010 Douglas Gregor <dgregor@apple.com>

Implement -fno-validate-pch at the -cc1 level, which suppresses most
of the usual consistency checks used to determine when a precompiled
header is incompatible with the translation unit it's being l

Implement -fno-validate-pch at the -cc1 level, which suppresses most
of the usual consistency checks used to determine when a precompiled
header is incompatible with the translation unit it's being loaded
into.

Enable this option when loading a precompiled preamble, because the
preamble loader will be performing all of this checking itself. Enable
the preamble-based test now that it's working.

This option is also useful for debugging Clang's PCH
(<rdar://problem/7532213>).

llvm-svn: 109475

show more ...


# 5b11d49a 25-Jul-2010 Douglas Gregor <dgregor@apple.com>

Make ASTContext always use the BumpPtrAllocator.

llvm-svn: 109375


# 60876431 09-Jul-2010 Sebastian Redl <sebastian.redl@getdesigned.at>

Correctly initialize Reader to null.

llvm-svn: 107994


# 595c5134 08-Jul-2010 Sebastian Redl <sebastian.redl@getdesigned.at>

Some preparatory work for chained PCH. No functionality change.

llvm-svn: 107915


# aed46fcb 07-Jun-2010 Daniel Dunbar <daniel@zuster.org>

Frontend: Move some initialization from CompilerInstance to FrontendAction, to parallel what is done for AST inputs.

llvm-svn: 105579


# 8654638b 07-Jun-2010 Daniel Dunbar <daniel@zuster.org>

Frontend: Change FrontendAction::BeginSourceFile to take the input kind instead of an IsAST bool.

llvm-svn: 105578


# 9b491e79 07-Jun-2010 Daniel Dunbar <daniel@zuster.org>

Frontend: Lift InputKind enumeration to top level.

llvm-svn: 105577


# cab4933f 27-May-2010 Dan Gohman <gohman@apple.com>

MemoryBuffer::getSTDIN may return a null pointer if an error occurs.

llvm-svn: 104856


# f64acca2 25-May-2010 Douglas Gregor <dgregor@apple.com>

Only enable code patterns (e.g., try { statements } catch (...) {
statements }) in the code-completion results if explicitly requested.

llvm-svn: 104637


Revision tags: llvmorg-2.7.0
# 2d2d9075 14-Apr-2010 Douglas Gregor <dgregor@apple.com>

Once we've emitted a fatal diagnostic, keep counting errors but with a
separate count of "suppressed" errors. This way, semantic analysis
bits that depend on the error count to determine whether prob

Once we've emitted a fatal diagnostic, keep counting errors but with a
separate count of "suppressed" errors. This way, semantic analysis
bits that depend on the error count to determine whether problems
occured (e.g., some template argument deduction failures, jump-scope
checking) will not get confused.

The actual problem here is that a missing #include (which is a fatal
error) could cause the jump-scope checker to run on invalid code,
which it is not prepared to do. Trivial fix for both
<rdar://problem/7775941> and <rdar://problem/7775709>.

llvm-svn: 101297

show more ...


# 198cb4df 07-Apr-2010 Chris Lattner <sabre@nondot.org>

Instead of counting totally diagnostics, split the count into a count
of errors and warnings. This allows us to emit something like this:

2 warnings and 1 error generated.

instead of:

3 diagnosti

Instead of counting totally diagnostics, split the count into a count
of errors and warnings. This allows us to emit something like this:

2 warnings and 1 error generated.

instead of:

3 diagnostics generated.

This also stops counting 'notes' because they are just follow-on information
about the previous diag, not a diagnostic in themselves.

llvm-svn: 100675

show more ...


# 7f95d26e 05-Apr-2010 Douglas Gregor <dgregor@apple.com>

Make Diagnostic reference-counted, which is simpler than juggling
maybe-ownership vs. ownership.

llvm-svn: 100498


# 171b780c 30-Mar-2010 Douglas Gregor <dgregor@apple.com>

Teach Clang's -cc1 option -print-stats to print LLVM statistics.

llvm-svn: 99894


# 1c201fbf 19-Mar-2010 Daniel Dunbar <daniel@zuster.org>

clang -cc1: Kill off -empty-input only, and replace with -init-only which is an
actual action.
- This is easier to use, and more reliable for timing the thing this was
actually meant to be useful

clang -cc1: Kill off -empty-input only, and replace with -init-only which is an
actual action.
- This is easier to use, and more reliable for timing the thing this was
actually meant to be useful for.

llvm-svn: 98978

show more ...


# 7f6d60dc 19-Mar-2010 Douglas Gregor <dgregor@apple.com>

Optionally store a PreprocessingRecord in the preprocessor itself, and
tie its creation to a CC1 flag -detailed-preprocessing-record.

llvm-svn: 98963


# eeed0cc3 17-Mar-2010 Kovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>

Simplify error path using OwningPtr

llvm-svn: 98722


# 9ff84d9c 17-Mar-2010 Kovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>

Simplify ProcessWarningOptions since it can't fail

llvm-svn: 98721


1...<<2122232425262728