Vassil Vassilev
51de445b1f
Remove the workaround to emphasize the problem.
2014-08-14 14:56:42 +02:00
manasij7479
5eaa25c6a0
Do not change the AST for printing extern, do not display initializers for extern globals
2014-08-14 14:56:42 +02:00
manasij7479
13bba4ed13
Do not modify the QualType to get unqualified name-string
2014-08-14 14:56:42 +02:00
manasij7479
25ec21d7e0
Properly handle typedef of function pointers
2014-08-14 14:56:42 +02:00
manasij7479
8095fb2728
Temporarily skip TypeAliasTemplateDecl s, until problem with enable_if is solved
2014-08-14 14:56:42 +02:00
manasij7479
dda142b9cf
Measures for skipping decls which depend on previously skipped decls
2014-08-14 14:56:42 +02:00
Vassil Vassilev
bfef6b414d
Add file info and authors.
2014-08-14 14:56:41 +02:00
Vassil Vassilev
76d8ba8ecc
Cleanup only the relevant entries.
2014-08-14 14:56:41 +02:00
Vassil Vassilev
05befaefa4
Remove useless includes.
2014-08-14 14:56:41 +02:00
Vassil Vassilev
724735b188
Typo.
2014-08-14 14:56:41 +02:00
Vassil Vassilev
ce4883fda7
Inline and simplify ctor and remove dtor.
2014-08-14 14:56:41 +02:00
Vassil Vassilev
9f8923f8f5
Remove redundant includes.
2014-08-14 14:56:41 +02:00
Vassil Vassilev
6b70d2d424
Do not decend into stmts, we care only about decls.
2014-08-14 14:56:41 +02:00
Vassil Vassilev
a11109b780
Use Traverse* instead of Visit* when using the RecursiveASTVisitor.
2014-08-14 14:56:41 +02:00
Vassil Vassilev
1707d9de35
Visit recursively all decls.
2014-08-14 14:56:41 +02:00
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