1532 Commits

Author SHA1 Message Date
Vassil Vassilev
5303c61014 Iterate over all declarations. Ends up asserting in EnumDecl annotation syntax. 2014-08-14 14:56:41 +02:00
Vassil Vassilev
835c1e3cbf Simplify code. 2014-08-14 14:56:41 +02:00
Vassil Vassilev
737a2c7f39 Shorten code. Make it more readable. 2014-08-14 14:56:41 +02:00
Vassil Vassilev
ee6ed354b1 Indents. 2014-08-14 14:56:41 +02:00
Vassil Vassilev
369b0ffb5c Iterate only on the top-level decls. 2014-08-14 14:56:41 +02:00
Vassil Vassilev
800be68dff Indents. 2014-08-14 14:56:41 +02:00
Vassil Vassilev
0d95a43186 Turn if stmt in assert. Must not happen. 2014-08-14 14:56:41 +02:00
Vassil Vassilev
8e51516f5b Use recursive ast visitor to cleanup the default args. 2014-08-14 14:56:41 +02:00
manasij7479
3503d9ccba Skip using directives referring to empty namespaces 2014-08-14 14:56:41 +02:00
manasij7479
f04aeaae26 Use a stream stack instead of a single stream, fixes Empty Namespace issue 2014-08-14 14:56:40 +02:00
manasij7479
7b99ddcfa1 Skip decls using names from defs like typedef struct {} structName 2014-08-14 14:56:40 +02:00
manasij7479
620fc072d0 Fixes empty annotation issue, with getSpellingLoc 2014-08-14 14:56:40 +02:00
manasij7479
6f08ab3b98 Do NOT skip attribues when class is not fully defined 2014-08-14 14:56:40 +02:00
manasij7479
eb84b553e1 Print fwd decls for full class template specializations, and printStats for ForwardDeclPrinter 2014-08-14 14:56:40 +02:00
Vassil Vassilev
8a8651a8d0 Implement diagnostic report in missing .x function to call. 2014-08-14 14:56:40 +02:00
manasij7479
6f55c38f62 Deleted unused code 2014-08-14 14:56:39 +02:00
manasij7479
3771364b51 Fixes extra semocolons from using decls, and disables some unused code to be deleted later 2014-08-14 14:56:39 +02:00
Vassil Vassilev
a1640388a4 On .x try calling the specially named function only if it exists. 2014-08-14 14:56:39 +02:00
Vassil Vassilev
23b6c2d49f Insert extra lines, makes the output prettier. 2014-08-14 14:56:39 +02:00
Vassil Vassilev
6b07371c34 Print help on llvm::outs, seems the issue we had is fixed. 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
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
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
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