summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInstance.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Predefine __weak attribute when doing objective-cFariborz Jahanian2010-01-131-2/+4
| | | | | | rewriting for any target. (refixes radar 7530235). llvm-svn: 93331
* cc1: Factor out CompilerInstance::ExecuteAction which has the majority of theDaniel Dunbar2010-01-131-0/+87
| | | | | | | | clang -cc1 logic for running an action against a set of options. - This should make it easier to build tools that have a clang -cc1 like interface, but aren't actually part of clang -cc1. llvm-svn: 93282
* Update docs/comments/utils/examples to refer to clang -cc1 instead of clang-cc.Daniel Dunbar2009-12-111-1/+1
| | | | llvm-svn: 91176
* Fix CompilerInstance::createOutputFile to use proper diagnostics, and (try ↵Daniel Dunbar2009-12-031-3/+3
| | | | | | to) update all clients to be able to handle failure. llvm-svn: 90437
* Remove an unnecessary (I believe) exit() on error.Daniel Dunbar2009-12-031-4/+0
| | | | llvm-svn: 90436
* Move file-remapping logic into InitPreprocesor. No functionality changeDouglas Gregor2009-12-021-39/+0
| | | | llvm-svn: 90322
* 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
* 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
* This patch moves the frontend timer from clang-cc into CompilerInstance.Kovarththanan Rajaratnam2009-11-291-0/+5
| | | | | | | | | | | 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
* Fix refactoro, clang-cc wasn't properly reporting errors when opening an ↵Daniel Dunbar2009-11-201-5/+5
| | | | | | output file failed. llvm-svn: 89502
* Simplify PreprocessorOptions, it doesn't need abstracted field access.Daniel Dunbar2009-11-171-2/+2
| | | | llvm-svn: 89047
* Shuffle VerifyDiagnosticsClient API to be less fragile.Daniel Dunbar2009-11-141-3/+5
| | | | llvm-svn: 88765
* Add CompilerInstance::InitializeSourceManager.Daniel Dunbar2009-11-141-0/+38
| | | | llvm-svn: 88764
* Switch -verify implementation to use VerifyDiagnosticClient.Daniel Dunbar2009-11-141-8/+7
| | | | | | - Not tested, but -verify with multiple inputs should work now. llvm-svn: 88750
* Add ASTConsumer to CompilerInstance.Daniel Dunbar2009-11-141-0/+5
| | | | llvm-svn: 88743
* Move CompilerInstance::set* methods out-of-line.Daniel Dunbar2009-11-141-0/+32
| | | | llvm-svn: 88731
* Add CompilerInstance utility functions for creating output files.Daniel Dunbar2009-11-131-0/+62
| | | | llvm-svn: 88667
* Add output file list to CompilerInstance, so that it can track them instead ofDaniel Dunbar2009-11-131-0/+20
| | | | | | forcing all clients to do it. llvm-svn: 87103
* Add CodeCompletion consumer to CompilerInvocation.Daniel Dunbar2009-11-131-1/+42
| | | | llvm-svn: 87100
* Add CompilerInstance::createPCHExternalASTSource.Daniel Dunbar2009-11-131-0/+38
| | | | llvm-svn: 87097
* Add ASTContext to CompilerInstance.Daniel Dunbar2009-11-131-0/+12
| | | | llvm-svn: 87095
* Add CompilerInstance::createDiagnostics, and move clang-cc to it.Daniel Dunbar2009-11-131-0/+67
| | | | | | clang-cc.cpp is now under 1k lines, if anyone is counting. llvm-svn: 87090
* Add Preprocessor to CompilerInstance, and move clang-cc CreatePreprocessor toDaniel Dunbar2009-11-131-0/+52
| | | | | | CompilerInstance::createPreprocessor. llvm-svn: 87088
* Add {File,Source}Manager to CompilerInstance.Daniel Dunbar2009-11-131-0/+10
| | | | llvm-svn: 87079
* Add CompilerInstance, and starting moving clang-cc to it.Daniel Dunbar2009-11-131-0/+25
- The design philosophy is in the CompilerInstance doxyment, if you don't agree with it now would be a good time to speak up. llvm-svn: 87078
OpenPOWER on IntegriCloud