Commit Graph

2147 Commits

Author SHA1 Message Date
Vassil Vassilev
deb8c0d21c If the input is not a file do not prepend .x in front. 2014-08-14 14:56:39 +02:00
Vassil Vassilev
69c522b596 Ignore 'attribute declaration must precede definition' for fwd decl maps. 2014-08-14 14:56:39 +02:00
manasij7479
6bdb9af57d Incorporating DeclPrinter fix for parameter packs into cling 2014-08-14 14:56:39 +02:00
manasij7479
6b8b0c40ef Bypass anonymous enum typedefs and functions with trailing return types 2014-08-14 14:56:39 +02:00
manasij7479
38b773ad3e Simple test for Standard Library headers, and a few more workarounds 2014-08-14 14:56:38 +02:00
Vassil Vassilev
0aa66b1e48 Pass in a includer's source location so clang can compare source locations.
This fixes a long standing issue with a clang assert when comparing with a
location coming from the lookup helper.
2014-08-14 14:56:38 +02:00
Vassil Vassilev
1a68292a33 Use the new interface, instead. 2014-08-14 14:56:38 +02:00
Vassil Vassilev
4205ca7350 Update llvm because of vital fixes in the pretty printer. 2014-08-14 14:56:38 +02:00
Vassil Vassilev
be640456c5 Remove redundant vars. 2014-08-14 14:56:38 +02:00
Vassil Vassilev
f21cf69429 Use the incremental parser's source location offsets in the LookupHelper, too.
This would give us proper ordering of the source locations, useful when clang
wants to compare them.
2014-08-14 14:56:38 +02:00
Vassil Vassilev
a3058bf045 Disable #inclusion of the generated fwd decl headers. 2014-08-14 14:56:38 +02:00
Vassil Vassilev
38016047cc Update last known good llvm. 2014-08-14 14:56:38 +02:00
Vassil Vassilev
14fecdd942 Try #include the generated files by separate instance. 2014-08-14 14:56:38 +02:00
Vassil Vassilev
03b5a56535 Force printing bool instead of _Bool. 2014-08-14 14:56:38 +02:00
Vassil Vassilev
c04d0654c3 Method takes a llvm::ArrayRef. 2014-08-14 14:56:38 +02:00
Vassil Vassilev
c035ef5414 getPtr -> get. 2014-08-14 14:56:38 +02:00
Vassil Vassilev
61868d59d9 llvm::errc -> std::errc. 2014-08-14 14:56:38 +02:00
Vassil Vassilev
d7c356286a Sanitizer opts take less options. 2014-08-14 14:56:38 +02:00
Vassil Vassilev
22f891e9be llvm::OwningPtr to std::unique_ptr. 2014-08-14 14:56:38 +02:00
Vassil Vassilev
c612a276e9 Adapt to interface changes in clang diagnostics. 2014-08-14 14:56:37 +02:00
Vassil Vassilev
cc7bb99497 MSCVersion -> MSCompatibilityVersion . 2014-08-14 14:56:37 +02:00
Vassil Vassilev
c7a71f9c1f setForcedLangOptions -> adjust. 2014-08-14 14:56:37 +02:00
Vassil Vassilev
3c62160e63 getTargetOpts -> TargetOpts. 2014-08-14 14:56:37 +02:00
Vassil Vassilev
3b523e05b1 Follow recent llvm interface changes getPtr()->get() . 2014-08-14 14:56:37 +02:00
Vassil Vassilev
ba5db8469d Move the code further up. 2014-08-14 14:56:37 +02:00
Vassil Vassilev
3d5b378afb Move the diagnostic client setup before parser's initialization.
This would allow us to produce diagnostics in the invocation args, such as
 -DFOO=''
Fixes ROOT-6538.
2014-08-14 14:56:37 +02:00
Vassil Vassilev
ac4ab27781 Reduce the iteration to only STL (at least on Ubu is the first include path.) 2014-08-14 14:56:37 +02:00
Vassil Vassilev
bacc8b6f08 Remove debug printout. Run in verify mode. 2014-08-14 14:56:37 +02:00
Vassil Vassilev
0065df1842 Test the fwd decl generator with all headers in the include path. 2014-08-14 14:56:37 +02:00
Vassil Vassilev
1c38bbdc59 Use different name of the parameters avoiding clashes. 2014-08-14 14:56:36 +02:00
Vassil Vassilev
fff46d898a Style and indents! 2014-08-14 14:56:36 +02:00
Vassil Vassilev
1e2a2fedca Forward declare, where possible. 2014-08-14 14:56:36 +02:00
Vassil Vassilev
e18f6722b9 Use cling coding conventions. 2014-08-14 14:56:36 +02:00
Vassil Vassilev
8203ebf237 Remove redundant function. 2014-08-14 14:56:36 +02:00
Vassil Vassilev
44140ded69 Do not mix private members and private functions in the same section. 2014-08-14 14:56:36 +02:00
Vassil Vassilev
54eee74802 Teach the forward decl printer how to suppress warnings. 2014-08-14 14:56:36 +02:00
Vassil Vassilev
ca124ec91d Store full paths into the annotation, add extra payload if any. 2014-08-14 14:56:36 +02:00
Vassil Vassilev
03f4edd3c1 Do not print the inherited default arguments. 2014-08-14 14:56:36 +02:00
Vassil Vassilev
151a0109f6 No this upfront. 2014-08-14 14:56:36 +02:00
Vassil Vassilev
01c090cf62 Use the correct variable. 2014-08-14 14:56:35 +02:00
Vassil Vassilev
f65296420e Put back the XFAIL. 2014-08-14 14:56:35 +02:00
Vassil Vassilev
51cdb1791c If no annotate attribute exit early. 2014-08-14 14:56:35 +02:00
manasij7479
e6df871547 Workarounds for getting STL fwd decls working: Iterate extern C blocks instead of calling VisitDeclContext Check if :: is a substring for hasNestedNameSpecifier Discard old solution for not printing classes and templates twice. 2014-08-14 14:56:35 +02:00
Vassil Vassilev
53d7da9b75 No need of undo anymore. 2014-08-14 14:56:35 +02:00
Vassil Vassilev
736ce0b8a9 Copy the header search options to the new instance. 2014-08-14 14:56:35 +02:00
Vassil Vassilev
91f9ad6abd Qualify the name for easier undestanding. 2014-08-14 14:56:35 +02:00
Vassil Vassilev
da49b370b1 Early exit if the File==0. Still to be investigated why is that. 2014-08-14 14:56:35 +02:00
Vassil Vassilev
d8f6659dcc Improve support for enum redeclaration. 2014-08-14 14:56:35 +02:00
manasij7479
fd1d5d2290 Generate fwd decls from nested cling instance 2014-08-14 14:56:35 +02:00
Vassil Vassilev
b2f0efd4d7 Update last known good llvm rev. 2014-08-14 14:56:35 +02:00