- Feb 09, 2010
-
-
Ted Kremenek authored
llvm-svn: 95675
-
Douglas Gregor authored
llvm-svn: 95602
-
- Feb 08, 2010
-
-
Ted Kremenek authored
llvm-svn: 95572
-
Ted Kremenek authored
Add a Python script to change what version of Clang is used by Xcode for static analysis (and ONLY static analysis). llvm-svn: 95569
-
- Feb 05, 2010
-
-
Ted Kremenek authored
llvm-svn: 95425
-
Ted Kremenek authored
Now that the -cc1 options for analyzer checks have a structured naming, add back scanning for analyzer checks to scan-build. llvm-svn: 95349
-
Ted Kremenek authored
llvm-svn: 95348
-
Ted Kremenek authored
llvm-svn: 95347
-
Ted Kremenek authored
llvm-svn: 95346
-
Ted Kremenek authored
llvm-svn: 95345
-
Ted Kremenek authored
llvm-svn: 95343
-
Ted Kremenek authored
llvm-svn: 95342
-
- Feb 03, 2010
-
-
Daniel Dunbar authored
llvm-svn: 95182
-
John McCall authored
appropriately. Call out a few missing cases in the expression mangler. llvm-svn: 95176
-
- Feb 02, 2010
-
-
Daniel Dunbar authored
side effect, this also fixes some cases on Windows where the file would end up on a different drive, because tmpnam doesn't include the drive component. PR3837 strikes again. llvm-svn: 95067
-
Daniel Dunbar authored
external ASTs, and the ASTUnit fails to load. Also, move getLocationFromExpr outside extern "C" block. llvm-svn: 95065
-
- Feb 01, 2010
-
-
Sebastian Redl authored
In C++, an initializer on a variable doesn't necessarily mean it's the definition. With that in mind, rename getDefinition to getAnyInitializer (to distinguish it from getInit) and reimplement it in terms of isThisDeclarationADefinition. Update all code to use this new function. llvm-svn: 94999
-
- Jan 31, 2010
-
-
Daniel Dunbar authored
have sent Ted a test case for this. llvm-svn: 94935
-
Daniel Dunbar authored
llvm-svn: 94930
-
Daniel Dunbar authored
CIndex: Fix diagnostic callback to not return SourceLocations with a reference to a temporary LangOptions object. llvm-svn: 94928
-
Daniel Dunbar authored
that diagnostics with a source location should occur inside {Begin,End}SourceFile. Note that code completion is currently passing in an invalid LangOptions object due to its implementation, I need to sort this out with Doug. llvm-svn: 94927
-
- Jan 29, 2010
-
-
Chandler Carruth authored
This includes the fix in r94797 to reflect the new dependency of Sema on Analysis. llvm-svn: 94806
-
Zhongxing Xu authored
llvm-svn: 94797
-
Anders Carlsson authored
llvm-svn: 94791
-
Douglas Gregor authored
when given bad inputs. llvm-svn: 94769
-
Douglas Gregor authored
and fix-it information, so we can see everything in one place. Along the way, fix a few bugs with deserialization and query of diagnostics in CIndex. llvm-svn: 94768
-
- Jan 28, 2010
-
-
Douglas Gregor authored
so that CIndex can report diagnostics through the normal mechanisms even when executing Clang in a separate process. This applies both when performing code completion and when using ASTs as an intermediary for clang_createTranslationUnitFromSourceFile(). The serialized format is not perfect at the moment, because it does not encapsulate macro-instantiation information. Instead, it maps all source locations back to the instantiation location. However, it does maintain source-range and fix-it information. To get perfect fidelity from the serialized format would require serializing a large chunk of the source manager; at present, it isn't clear if this code will live long enough for that to matter. llvm-svn: 94740
-
Douglas Gregor authored
diagnostic callback mechanism, so all diagnostics now go through that callback. Also, eliminate the displayDiagnostics flag to clang_createIndex(), since it is no longer necessary: the client determines whether to display diagnostics or not. llvm-svn: 94714
-
Douglas Gregor authored
clients can format diagnostics as they wish rather than having to parse standard error. All of the important parts of the front end's diagnostics are exposed: text, severity, location, source ranges, and fix-its. The diagnostics callback is now available with clang_createTranslationUnitFromSource() and clang_createTranslationUnit(). As part of this change, CXSourceLocation and CXSourceRange got one pointer larger, since we need to hold on to the SourceManager and LangOptions structures in the source location. This is the minimum amount of information needed for the functions that operate on source locations and ranges (as implemented now). Previously we held on to the ASTContext, but the diagnostics callback can end up with source locations when there is no ASTContext (or preprocessor). Still to do: - Code completion needs to support the diagnostics callback, once we have the ability to (de-)serialize diagnostics. - Eliminate the "displayDiagnostics" argument to createIndex; we'll always pass diagnostics to the callback and let it deal with display. llvm-svn: 94709
-
- Jan 27, 2010
-
-
Chandler Carruth authored
llvm-svn: 94668
-
- Jan 26, 2010
-
-
Ted Kremenek authored
Implement 'clang_getInclusions()' in CIndex. This API allows clients to walk the set of files included in a translation unit via the C API. llvm-svn: 94575
-
Douglas Gregor authored
offset parameter to clang_getInstantiationLocation(). llvm-svn: 94573
-
Douglas Gregor authored
of the tokens within a raw token stream. This does not even attempt to handle macros yet. llvm-svn: 94561
-
Ted Kremenek authored
Add 'PostVisitTU' callback hook to 'perform_test_load()' to allow a special callback after the translation unit has been loaded (and streamed). llvm-svn: 94557
-
Ted Kremenek authored
utility of this change will be made clearer in a subsequent patch when perform_test_load()' does more than stream the AST. llvm-svn: 94556
-
Douglas Gregor authored
range. The token-annotation function does nothing, yet. llvm-svn: 94551
-
Douglas Gregor authored
source location in file + offset. llvm-svn: 94497
-
- Jan 25, 2010
-
-
Ted Kremenek authored
Pull functions that translate from CXSourceLocation to SourceLocation (and back) to a separate header file. llvm-svn: 94462
-
Ted Kremenek authored
llvm-svn: 94447
-
Douglas Gregor authored
string when given a cursor that does not have a name. Also, don't give silly names for statements and non-reference expressions. llvm-svn: 94426
-