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
dd554c2d6e
Use #include instead of real files.
...
If we use real files cling would .x them and run a function named after the file.
In our case it is missing and would issue useless warnings.
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
Vassil Vassilev
5d6297b821
Adapt to the new invocation.
2014-08-14 14:56:40 +02:00
Vassil Vassilev
7ecb829baa
Move the test at its right place
2014-08-14 14:56:40 +02:00
Vassil Vassilev
c51df6e215
The invocation changed, follow the changes.
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
e0874ff6a4
Improve the STL test. Now we can reenable it.
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
7b2c95f7bc
Use the file lookup using the include paths to resolve filenames.
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
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