summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend
Commit message (Collapse)AuthorAgeFilesLines
...
* clang-cc: Honor -help and -version when using new style option parsing.Daniel Dunbar2009-12-031-0/+6
| | | | llvm-svn: 90422
* Add clang -cc1 support for -remap-file.Daniel Dunbar2009-12-031-2/+21
| | | | llvm-svn: 90414
* Add clang -cc1 -load option.Daniel Dunbar2009-12-031-0/+5
| | | | llvm-svn: 90413
* Fix ASTUnit to allows require a (persistent) Diagnostic object be provided; ↵Daniel Dunbar2009-12-032-22/+10
| | | | | | propogate and simplify. llvm-svn: 90379
* ASTUnit: Explicitly track whether the ASTUnit came from an actual AST or not.Daniel Dunbar2009-12-021-4/+7
| | | | llvm-svn: 90349
* ASTUnit: Fix initialization of OnlyLocalDecls variable, and honor ↵Daniel Dunbar2009-12-021-4/+4
| | | | | | UseBumpAllocator. llvm-svn: 90348
* Change rtti/Rtti to RTTI, as it is an acronym.Mike Stump2009-12-021-2/+2
| | | | llvm-svn: 90334
* Extend -remap-file=from;to to permit mapping from a non-existentDouglas Gregor2009-12-021-4/+5
| | | | | | | | | | | | file. This is accomplished by introducing the notion of a "virtual" file into the file manager, which provides a FileEntry* for a named file whose size and modification time are known but which may not exist on disk. Added a cute little test that remaps both a .c file and a .h file it includes to alternative files. llvm-svn: 90329
* Move file-remapping logic into InitPreprocesor. No functionality changeDouglas Gregor2009-12-022-39/+53
| | | | llvm-svn: 90322
* Fix ASTUnit::getOriginalSourceFileName() when using ASTUnit's derived fromDaniel Dunbar2009-12-021-1/+6
| | | | | | source files. llvm-svn: 90311
* ASTUnit: Don't create an LLVMContext, it shouldn't be needed.Daniel Dunbar2009-12-021-2/+1
| | | | llvm-svn: 90310
* Introduce a new clang-cc option Douglas Gregor2009-12-021-0/+39
| | | | | | | | | | | | | | | | | | -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
* Extend the source manager with the ability to override the contents ofDouglas Gregor2009-12-021-1/+1
| | | | | | | | | | 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
* Add ASTUnit::LoadFromCommandLine, which creates an ASTUnit out of a list ofDaniel Dunbar2009-12-021-0/+55
| | | | | | | | | | | | | | (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
* ASTUnit: Make sure to preserve the TargetInfo for later use.Daniel Dunbar2009-12-011-2/+3
| | | | llvm-svn: 90263
* Exit the command line into <built-in> instead of going directly from the ↵Rafael Espindola2009-12-011-0/+5
| | | | | | | | 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
* Add ASTUnit::LoadFromCompilerInvocation, which does what it says.Daniel Dunbar2009-12-011-4/+95
| | | | | | | Also, add an -ast-from-source option to index-test which allows index-test to run on source files directly. llvm-svn: 90223
* Switch the clang-to-CIndex interface for code-completion to a binary format, ↵Douglas Gregor2009-12-011-0/+7
| | | | | | for a massive speedup llvm-svn: 90209
* clang -cc1: Move CompilerInvocation deserialization into CompilerInvocation.cpp,Daniel Dunbar2009-12-011-0/+680
| | | | | | where it belongs. llvm-svn: 90198
* Add CodeGenOptions::{SoftFloat,FloatABI}, and update the all the (far too ↵Daniel Dunbar2009-11-302-0/+12
| | | | | | many) places to use this instead of using the backend -soft-float and -float-abi= options. llvm-svn: 90127
* Add TextDiagnosticBuffer::FlushDiagnostics, for forwarding the buffered ↵Daniel Dunbar2009-11-301-0/+10
| | | | | | diagnostics to a different diagnostics engine. llvm-svn: 90125
* Eliminate CodeGenOptions::TimePasses.Daniel Dunbar2009-11-302-14/+16
| | | | llvm-svn: 90118
* Eliminate CodeGenOptions::SimplifyLibCalls.Daniel Dunbar2009-11-301-4/+6
| | | | llvm-svn: 90117
* Fix PR5633 by making the preprocessor handle the case where we canChris Lattner2009-11-305-7/+13
| | | | | | | | | | 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
* Simplify.Daniel Dunbar2009-11-291-6/+5
| | | | llvm-svn: 90091
* This patch moves the frontend timer from clang-cc into CompilerInstance.Kovarththanan Rajaratnam2009-11-292-3/+11
| | | | | | | | | | | 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
* Add DeclarationName support for C++0x operator literals. They should now work asAlexis Hunt2009-11-292-0/+8
| | | | | | | function names outside of templates - they'll probably cause some damage there as they're largely untested. llvm-svn: 90064
* Move LLVM backend options to explicit clang-cc / clang -cc1 options, which ↵Daniel Dunbar2009-11-292-0/+58
| | | | | | 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
* Add clang -cc1 parsing for LangOptions.Daniel Dunbar2009-11-291-2/+2
| | | | | | - This is the last major parsing piece, main FIXMEs remain. llvm-svn: 90059
* Change LangOptions::ObjCConstantStringClass to an std::string to avoid ↵Daniel Dunbar2009-11-291-13/+13
| | | | | | worrying about the lifetime. llvm-svn: 90052
* Move MainFileName option variable into CodeGenOptions instead of LangOptions.Daniel Dunbar2009-11-291-4/+4
| | | | llvm-svn: 90051
* Remove VISIBILITY_HIDDEN from anonymous namespaces in libFrontend.Benjamin Kramer2009-11-2811-39/+23
| | | | llvm-svn: 90033
* Don't call exit(). llvm::llvm_report_error() will do just thatKovarththanan Rajaratnam2009-11-281-1/+0
| | | | llvm-svn: 90031
* typoGabor Greif2009-11-261-1/+1
| | | | llvm-svn: 89949
* issue a friendlier error if someone tries to send precompiled header to '-' ↵Gabor Greif2009-11-261-1/+1
| | | | | | | | | | | (stdout) this brings the error on clang -c foo.h -o - closer to clang -c foo.h -o /dev/null llvm-svn: 89948
* Factor out a LangStandard class and coalesce the information about the ↵Daniel Dunbar2009-11-262-0/+45
| | | | | | | | standards into LangStandards.def - I'd appreciate another pair of eyeballs to double check this. llvm-svn: 89919
* Add clang -cc1 parsing for preprocessor options.Daniel Dunbar2009-11-261-6/+12
| | | | llvm-svn: 89917
* Add clang -cc1 parsing for header search options.Daniel Dunbar2009-11-261-2/+2
| | | | llvm-svn: 89916
* Allow user re-definition of SEL as well as accessing its fields.Fariborz Jahanian2009-11-252-2/+2
| | | | | | This fixes pr5611. llvm-svn: 89895
* Call GRExprEngine::setTransferFunctions() after registering all Checkers. ↵Ted Kremenek2009-11-251-2/+2
| | | | | | This allows GRTransferFuncs::RegisterChecks() to always be called after all checkers have been registered. llvm-svn: 89887
* Consolidate logic in ActionInlineCall by having it call ActionGRExprEngine ↵Ted Kremenek2009-11-251-19/+3
| | | | | | instead of replicating most of its logic (and missing pieces). llvm-svn: 89886
* Make RegisterInternalChecks() part of GRExprEngine's private implementation ↵Ted Kremenek2009-11-251-1/+0
| | | | | | by making it a static function within GRExprEngine.cpp. llvm-svn: 89884
* Register internal checks with GRExprEngine when it is constructed, not ↵Ted Kremenek2009-11-251-2/+0
| | | | | | manually in AnalysisConsumer.cpp. llvm-svn: 89883
* Fix some uses of fprintf/stderr without a prototype.Daniel Dunbar2009-11-251-2/+2
| | | | llvm-svn: 89858
* Add clang -cc1 parsing for frontend options.Daniel Dunbar2009-11-251-1/+1
| | | | llvm-svn: 89856
* Parse C++ member check attributes - base_check, hiding, and override.Alexis Hunt2009-11-252-0/+8
| | | | | | The attributes are currently ignored. llvm-svn: 89837
* Eliminate CXXConditionDeclExpr with extreme prejudice.Douglas Gregor2009-11-254-7/+12
| | | | | | | | | | | | | | | | | 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
* Clean up the AST for while loops and fix several problems withDouglas Gregor2009-11-242-0/+2
| | | | | | | | | | | | | | | | | 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
* Explicitly store the condition variable within switch statements, andDouglas Gregor2009-11-242-0/+2
| | | | | | | make sure that this variable is destroyed when we exit the switch statement. llvm-svn: 89776
* Explicitly track the condition variable within an "if" statement,Douglas Gregor2009-11-232-0/+2
| | | | | | | | | 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
OpenPOWER on IntegriCloud