summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend
Commit message (Collapse)AuthorAgeFilesLines
...
* atch for implementation of objective-c's -WselectorFariborz Jahanian2010-07-222-0/+2
| | | | | | | warning flag in clang. Little more to do for a PCH issue. Radar 6507158. llvm-svn: 109129
* Read/write C++0x static_assert for PCH.Argyrios Kyrtzidis2010-07-222-3/+8
| | | | llvm-svn: 109123
* Allow loading declcontext information from any file in the chain. Properly ↵Sebastian Redl2010-07-223-66/+93
| | | | | | write source locations to dependent files. WIP llvm-svn: 109119
* Read/write FriendTemplateDecl for PCH.Argyrios Kyrtzidis2010-07-222-3/+23
| | | | llvm-svn: 109113
* Support C++ try/catch statements for PCH.Argyrios Kyrtzidis2010-07-222-0/+52
| | | | llvm-svn: 109112
* Allow loading macros from any file in the chain. WIPSebastian Redl2010-07-211-70/+89
| | | | llvm-svn: 109048
* Promote some macro-related stuff to per-file data. Fix a cache-inefficient ↵Sebastian Redl2010-07-211-40/+44
| | | | | | nested loop by inverting the nesting. Store the size of each file in the chain; will need this later for statement offsets. llvm-svn: 109030
* Allow loading identifiers from any file in the chain. WIPSebastian Redl2010-07-211-6/+17
| | | | llvm-svn: 108974
* Apparently not every system thinks that references in pairs are as cool as I ↵Sebastian Redl2010-07-202-4/+4
| | | | | | think. llvm-svn: 108959
* Allow loading declarations from any file in the chain. WIPSebastian Redl2010-07-202-5/+19
| | | | llvm-svn: 108956
* Allow loading types from any file in the chain. WIPSebastian Redl2010-07-201-9/+24
| | | | llvm-svn: 108954
* Allow loading source locations from any file in the chain. WIPSebastian Redl2010-07-201-2/+21
| | | | llvm-svn: 108942
* More work on getting PCHReader to handle multiple files. Promote SLocOffsets ↵Sebastian Redl2010-07-201-53/+71
| | | | | | to per-file data. WIP llvm-svn: 108930
* Introduce a new lexer function to compute the "preamble" of a file,Douglas Gregor2010-07-202-0/+33
| | | | | | | | | which is the part of the file that contains all of the initial comments, includes, and preprocessor directives that occur before any of the actual code. Added a new -print-preamble cc1 action that is only used for testing. llvm-svn: 108913
* Hide FunctionTemplateDecl's specializations folding set as implementation ↵Argyrios Kyrtzidis2010-07-202-6/+10
| | | | | | | | | | | detail and introduce FunctionTemplateDecl::findSpecialization. Redeclarations of specializations will not cause the previous decl to be removed from the set, the set will keep the canonical decl. findSpecialization will return the most recent redeclaration. llvm-svn: 108834
* Whether the specialization should be added to template's folding set when ↵Argyrios Kyrtzidis2010-07-202-11/+5
| | | | | | | | read from PCH, is determined by a isCanonicalDecl check. llvm-svn: 108833
* Update ImplicitCastExpr to be able to represent an XValue.Sebastian Redl2010-07-202-2/+2
| | | | llvm-svn: 108807
* Remove PCHReader::getStream(), it was unused. Inline ↵Sebastian Redl2010-07-191-1/+1
| | | | | | PCHReader::getDelsCursor() into its sole caller and remove it. This reduces the attack surface of multiple PCH files towards code outside the PCH implementation. llvm-svn: 108763
* Promote IdentifierOffsets to per-file data.Sebastian Redl2010-07-191-12/+12
| | | | llvm-svn: 108762
* Promote DeclOffsets and TypeOffsets to per-file data.Sebastian Redl2010-07-191-10/+21
| | | | llvm-svn: 108760
* Introduce a new libclang API, clang_reparseTranslationUnit(), whichDouglas Gregor2010-07-191-50/+102
| | | | | | | | reparses an already-parsed translation unit. At the moment it's just a convenience function, but we hope to use it for performance optimizations. llvm-svn: 108756
* Promote the identifier table to per-file data. Also, if a CHAINED_METADATA ↵Sebastian Redl2010-07-191-21/+30
| | | | | | record exists, it has to be the first thing in the PCH file. llvm-svn: 108748
* Driver: Change the driver to take the path to the main executable, instead ofDaniel Dunbar2010-07-191-1/+1
| | | | | | | | | taking it in pieces. - Fixes a problem where the Clang executable path was not initialized properly on Win32, because sys::Path::getBasename() doesn't do what I always think it does. Imagine that, a sys::Path interface that is confusing! llvm-svn: 108667
* BUILD_ARCHIVE is the default for libraries, no need to set it.Chris Lattner2010-07-181-1/+0
| | | | llvm-svn: 108633
* Added PCH/ASTImporter code for ObjCIvarDecl's field.Fariborz Jahanian2010-07-172-0/+3
| | | | llvm-svn: 108627
* Teach the PCH reader to load the dependency when encountering a chain ↵Sebastian Redl2010-07-171-77/+86
| | | | | | metadata record. WIP llvm-svn: 108578
* Separate out the initial loading of a PCH so that loading chained PCHs can ↵Sebastian Redl2010-07-161-32/+51
| | | | | | reuse it. llvm-svn: 108551
* Improved false positive rate for the idempotent operations checker and moved ↵Tom Care2010-07-161-4/+0
| | | | | | | | | | it into the default path-sensitive analysis options. - Added checks for static local variables, self assigned parameters, and truncating/extending self assignments - Removed command line option (now default with --analyze) - Updated test cases to pass with idempotent operation warnings llvm-svn: 108550
* First baby steps towards PCHReader being able to keep track of multiple PCH ↵Sebastian Redl2010-07-163-20/+50
| | | | | | files. WIP llvm-svn: 108537
* Add a little more data to chained PCHs. WIPSebastian Redl2010-07-163-36/+55
| | | | llvm-svn: 108528
* Suppress !+Asserts warning.Daniel Dunbar2010-07-161-0/+1
| | | | llvm-svn: 108480
* Add a callback interface that allows interested parties to get notified ↵Sebastian Redl2010-07-144-34/+50
| | | | | | whenever PCHReader deserializes a type or decl (and possibly other things in the future). Have PCHWriter implement these callbacks as noops and register to receive them if we're chaining PCHs. This will allow PCHWriter to track the IDs of these things, which it needs to write the dependent files. WIP llvm-svn: 108383
* There is another implementation of PCHReaderListener around. Update it to ↵Sebastian Redl2010-07-141-3/+5
| | | | | | the new interface. llvm-svn: 108377
* Pass StringRefs by value.Benjamin Kramer2010-07-141-1/+1
| | | | llvm-svn: 108375
* Increase the max PCH level for declarations to 7. Add a FromPCH flag to types.Sebastian Redl2010-07-141-1/+3
| | | | llvm-svn: 108354
* Make PCHReader cope with PCH files containing more than one predefines buffer.Sebastian Redl2010-07-141-35/+116
| | | | llvm-svn: 108340
* Downgrade the "when type is in parentheses, array cannot have dynamicDouglas Gregor2010-07-133-3/+7
| | | | | | | | | | | | size" error for code like new (int [size]) to a warning, add a Fix-It to remove the parentheses, and make this diagnostic work properly when it occurs in a template instantiation. <rdar://problem/8018245>. llvm-svn: 108242
* Modify the pragma handlers to accept and use StringRefs instead of ↵Argyrios Kyrtzidis2010-07-132-4/+4
| | | | | | | | | | | IdentifierInfos. When loading the PCH, IdentifierInfos that are associated with pragmas cause declarations that use these identifiers to be deserialized (e.g. the "clang" pragma causes the "clang" namespace to be loaded). We can avoid this if we just use StringRefs for the pragmas. As a bonus, since we don't have to create and pass IdentifierInfos, the pragma interfaces get a bit more simplified. llvm-svn: 108237
* Fix a documentation paste-o and eliminate a useless function parameter, both ↵Douglas Gregor2010-07-121-4/+2
| | | | | | found by Sebastian llvm-svn: 108214
* Split the normal and chained PCH writing paths and add a tiny bit of ↵Sebastian Redl2010-07-121-8/+73
| | | | | | implementation to the latter. WIP. llvm-svn: 108200
* Simplify code using the new FoldingSetImpl::InsertNode() overload.Argyrios Kyrtzidis2010-07-121-8/+2
| | | | llvm-svn: 108198
* Switch to void-cast for this. Chris prefers that over the attribute, I'llChandler Carruth2010-07-111-3/+4
| | | | | | probably try and switch more of these if I can. llvm-svn: 108085
* Mark assert-only variables as unused.Chandler Carruth2010-07-111-2/+3
| | | | llvm-svn: 108068
* Add PCH support for the remaining C++ exprs.Argyrios Kyrtzidis2010-07-102-5/+69
| | | | llvm-svn: 108042
* Reorganize how ClassTemplate[Partial]SpecializationDecls are read/written to ↵Argyrios Kyrtzidis2010-07-092-37/+38
| | | | | | | | avoid the possibility of adding an unitialized one into the folding set. llvm-svn: 108016
* isMemberSpecialization -> setMemberSpecialization.Argyrios Kyrtzidis2010-07-091-1/+1
| | | | llvm-svn: 108015
* When given the -chained-pch option and a previous PCH file, have the ↵Sebastian Redl2010-07-092-12/+21
| | | | | | PCHWriter emit a CHAINED_METADATA record instead of METADATA, and write a link to the previous file there. llvm-svn: 108014
* Correctly initialize Reader to null.Sebastian Redl2010-07-091-1/+1
| | | | llvm-svn: 107994
* Really respect -chained-pch.Sebastian Redl2010-07-091-7/+5
| | | | llvm-svn: 107993
* Introduce -f{no-}spell-checking options to enable/disableDouglas Gregor2010-07-093-0/+3
| | | | | | | spell-checking. By default, spell-checking is enabled for Clang (obviously) but disabled in CIndex for performance reasons. llvm-svn: 107992
OpenPOWER on IntegriCloud