- Dec 02, 2009
-
-
Daniel Dunbar authored
llvm-svn: 90310
-
Douglas Gregor authored
-remap-file=from;to which takes the file "from" and transparently replaces its contents with the contents of the file "to" from the source manager's perspective. This is the moral equivalent of cp from saved cp to from <call clang> cp saved from rm saved without all of the pesky file copying. llvm-svn: 90307
-
Douglas Gregor authored
files with the contents of an arbitrary memory buffer. Use this new functionality to drastically clean up the way in which we handle file truncation for code-completion: all of the truncation/completion logic is now encapsulated in the preprocessor where it belongs (<rdar://problem/7434737>). llvm-svn: 90300
-
Daniel Dunbar authored
(clang/driver) command line arguments (including the source file). - The arguments are expected to include the source file. - The idea is that even though this is a somewhat odd API, its the form which many tools can most easily use (for example, by interposing with the compiler). Also, switch index-test's -ast-from-source to use this entry point, and provide a -arg command line argument which can be used to test that the command line arguments are handled correctly. llvm-svn: 90288
-
- Dec 01, 2009
-
-
Daniel Dunbar authored
llvm-svn: 90263
-
Rafael Espindola authored
Exit the command line into <built-in> instead of going directly from the command line to the input file. We passed <built-in> on the way in, so we should pass it again on the way out. llvm-svn: 90250
-
Daniel Dunbar authored
Also, add an -ast-from-source option to index-test which allows index-test to run on source files directly. llvm-svn: 90223
-
Douglas Gregor authored
llvm-svn: 90209
-
Daniel Dunbar authored
where it belongs. llvm-svn: 90198
-
- Nov 30, 2009
-
-
Daniel Dunbar authored
Add CodeGenOptions::{SoftFloat,FloatABI}, and update the all the (far too many) places to use this instead of using the backend -soft-float and -float-abi= options. llvm-svn: 90127
-
Daniel Dunbar authored
Add TextDiagnosticBuffer::FlushDiagnostics, for forwarding the buffered diagnostics to a different diagnostics engine. llvm-svn: 90125
-
Daniel Dunbar authored
llvm-svn: 90118
-
Daniel Dunbar authored
llvm-svn: 90117
-
Chris Lattner authored
stat a file but where mmaping it fails. In this case, we emit an error like: t.c:1:10: fatal error: error opening file '../../foo.h' instead of "cannot find file". llvm-svn: 90110
-
- Nov 29, 2009
-
-
Daniel Dunbar authored
llvm-svn: 90091
-
Kovarththanan Rajaratnam authored
CompilerInstance already contains various objects that are used throughout the entire run. Also addresses Daniels review comments in: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20091123/024508.html llvm-svn: 90073
-
Alexis Hunt authored
function names outside of templates - they'll probably cause some damage there as they're largely untested. llvm-svn: 90064
-
Daniel Dunbar authored
Move LLVM backend options to explicit clang-cc / clang -cc1 options, which we then manually pass to the command line library; eventually the latter grossness should be fixed by a real API when creating the target machine. llvm-svn: 90063
-
Daniel Dunbar authored
- This is the last major parsing piece, main FIXMEs remain. llvm-svn: 90059
-
Daniel Dunbar authored
llvm-svn: 90052
-
Daniel Dunbar authored
llvm-svn: 90051
-
- Nov 28, 2009
-
-
Benjamin Kramer authored
llvm-svn: 90033
-
Kovarththanan Rajaratnam authored
llvm-svn: 90031
-
- Nov 26, 2009
-
-
Gabor Greif authored
llvm-svn: 89949
-
Gabor Greif authored
this brings the error on clang -c foo.h -o - closer to clang -c foo.h -o /dev/null llvm-svn: 89948
-
Daniel Dunbar authored
Factor out a LangStandard class and coalesce the information about the standards into LangStandards.def - I'd appreciate another pair of eyeballs to double check this. llvm-svn: 89919
-
Daniel Dunbar authored
llvm-svn: 89917
-
Daniel Dunbar authored
llvm-svn: 89916
-
Fariborz Jahanian authored
This fixes pr5611. llvm-svn: 89895
-
- Nov 25, 2009
-
-
Ted Kremenek authored
Call GRExprEngine::setTransferFunctions() after registering all Checkers. This allows GRTransferFuncs::RegisterChecks() to always be called after all checkers have been registered. llvm-svn: 89887
-
Ted Kremenek authored
Consolidate logic in ActionInlineCall by having it call ActionGRExprEngine instead of replicating most of its logic (and missing pieces). llvm-svn: 89886
-
Ted Kremenek authored
Make RegisterInternalChecks() part of GRExprEngine's private implementation by making it a static function within GRExprEngine.cpp. llvm-svn: 89884
-
Ted Kremenek authored
Register internal checks with GRExprEngine when it is constructed, not manually in AnalysisConsumer.cpp. llvm-svn: 89883
-
Daniel Dunbar authored
llvm-svn: 89858
-
Daniel Dunbar authored
llvm-svn: 89856
-
Alexis Hunt authored
The attributes are currently ignored. llvm-svn: 89837
-
Douglas Gregor authored
All statements that involve conditions can now hold on to a separate condition declaration (a VarDecl), and will use a DeclRefExpr referring to that VarDecl for the condition expression. ForStmts now have such a VarDecl (I'd missed those in previous commits). Also, since this change reworks the Action interface for if/while/switch/for, use FullExprArg for the full expressions in those expressions, to ensure that we're emitting Note that we are (still) not generating the right cleanups for condition variables in for statements. That will be a follow-on commit. llvm-svn: 89817
-
- Nov 24, 2009
-
-
Douglas Gregor authored
cleanups for while loops: 1) Make sure that we destroy the condition variable of a while statement each time through the loop for, e.g., while (shared_ptr<WorkInt> p = getWorkItem()) { // ... } 2) Make sure that we always enter a new cleanup scope for the body of the while loop, even when there is no compound expression, e.g., while (blah) RAIIObject raii(blah+1); llvm-svn: 89800
-
Douglas Gregor authored
make sure that this variable is destroyed when we exit the switch statement. llvm-svn: 89776
-
Douglas Gregor authored
rather than burying it in a CXXConditionDeclExpr (that occassionally hides behind implicit conversions). Similar changes for switch, while, and do-while will follow, then the removal of CXXConditionDeclExpr. This commit is the canary. llvm-svn: 89717
-