#
3d9d929e |
| 22-Jun-2015 |
Alexander Kornienko <alexfh@google.com> |
Fixed/added namespace ending comments using clang-tidy. NFC
The patch is generated using this command:
$ tools/extra/clang-tidy/tool/run-clang-tidy.py -fix \ -checks=-*,llvm-namespace-comme
Fixed/added namespace ending comments using clang-tidy. NFC
The patch is generated using this command:
$ tools/extra/clang-tidy/tool/run-clang-tidy.py -fix \ -checks=-*,llvm-namespace-comment -header-filter='llvm/.*|clang/.*' \ work/llvm/tools/clang
To reduce churn, not touching namespaces spanning less than 10 lines.
llvm-svn: 240270
show more ...
|
#
86b42681 |
| 19-Jun-2015 |
Douglas Gregor <dgregor@apple.com> |
Code completion for nullability type specifiers.
Another part of rdar://problem/18868820.
llvm-svn: 240159
|
#
3204b152 |
| 29-May-2015 |
Benjamin Kramer <benny.kra@googlemail.com> |
Replace push_back(Constructor(foo)) with emplace_back(foo) for non-trivial types
If the type isn't trivially moveable emplace can skip a potentially expensive move. It also saves a couple of charact
Replace push_back(Constructor(foo)) with emplace_back(foo) for non-trivial types
If the type isn't trivially moveable emplace can skip a potentially expensive move. It also saves a couple of characters.
Call sites were found with the ASTMatcher + some semi-automated cleanup.
memberCallExpr( argumentCountIs(1), callee(methodDecl(hasName("push_back"))), on(hasType(recordDecl(has(namedDecl(hasName("emplace_back")))))), hasArgument(0, bindTemporaryExpr( hasType(recordDecl(hasNonTrivialDestructor())), has(constructExpr()))), unless(isInTemplateInstantiation()))
No functional change intended.
llvm-svn: 238601
show more ...
|
Revision tags: llvmorg-3.6.1, llvmorg-3.6.1-rc1 |
|
#
20e883e5 |
| 29-Apr-2015 |
Richard Smith <richard-llvm@metafoo.co.uk> |
[modules] Stop trying to fake up a linear MacroDirective history.
Modules builds fundamentally have a non-linear macro history. In the interest of better source fidelity, represent the macro definit
[modules] Stop trying to fake up a linear MacroDirective history.
Modules builds fundamentally have a non-linear macro history. In the interest of better source fidelity, represent the macro definition information faithfully: we have a linear macro directive history within each module, and at any point we have a unique "latest" local macro directive and a collection of visible imported directives. This also removes the attendent complexity of attempting to create a correct MacroDirective history (which we got wrong in the general case).
No functionality change intended.
llvm-svn: 236176
show more ...
|
#
b8b2ed65 |
| 23-Apr-2015 |
Richard Smith <richard-llvm@metafoo.co.uk> |
[modules] Determine the set of macros exported by a submodule at the end of that submodule.
Previously we'd defer this determination until writing the AST, which doesn't allow us to use this informa
[modules] Determine the set of macros exported by a submodule at the end of that submodule.
Previously we'd defer this determination until writing the AST, which doesn't allow us to use this information when building other submodules of the same module. This change also allows us to use a uniform mechanism for writing module macro records, independent of whether they are local or imported.
llvm-svn: 235614
show more ...
|
Revision tags: llvmorg-3.5.2, llvmorg-3.5.2-rc1 |
|
#
ee1d76f3 |
| 13-Mar-2015 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
[libclang] Fix crash when code-completing inside constructor initializer for a builtin type.
rdar://20149746
llvm-svn: 232145
|
Revision tags: llvmorg-3.6.0 |
|
#
cf4bdde3 |
| 21-Feb-2015 |
Richard Smith <richard-llvm@metafoo.co.uk> |
Cleanup: remove artificial division between lookup results and const lookup results. No-one was ever modifying a lookup result, and it would not be reasonable to do so.
llvm-svn: 230123
|
Revision tags: llvmorg-3.6.0-rc4, llvmorg-3.6.0-rc3, llvmorg-3.6.0-rc2 |
|
#
8cafefae |
| 29-Jan-2015 |
Francisco Lopes da Silva <oblita@gmail.com> |
Sema: Turn some applicable functions static. NBC.
llvm-svn: 227418
|
#
0c010cdd |
| 28-Jan-2015 |
Francisco Lopes da Silva <oblita@gmail.com> |
Improves overload completion result chunks.
The code building the code completion string for overloads was providing less detail compared to the one building completion strings for function declarat
Improves overload completion result chunks.
The code building the code completion string for overloads was providing less detail compared to the one building completion strings for function declarations. There was no information about optionals and no information about what's a parameter and what's a function identifier, everything besides ResultType, CurrentParameter and special characters was classified as Text.
This makes code completion strings for overload candidates to follow a pattern very similar, but not identical, to the one in use for function declarations:
- return type chunk: ResultType - function identifier chunk: Text - parameter chunks: Placeholder - optional parameter chunks: Optional - current parameter chunk: CurrentParameter
llvm-svn: 227309
show more ...
|
#
1a4f8555 |
| 25-Jan-2015 |
Francisco Lopes da Silva <oblita@gmail.com> |
Sema: Formatting. No behavior change.
llvm-svn: 227052
|
#
a349a8ae |
| 25-Jan-2015 |
Francisco Lopes da Silva <oblita@gmail.com> |
Sema: require a complete type before lookup.
llvm-svn: 227037
|
#
62a9a4fc |
| 23-Jan-2015 |
Francisco Lopes da Silva <oblita@gmail.com> |
Sema: code completion for variadic prototypes.
llvm-svn: 226908
|
#
c6ccc4fe |
| 22-Jan-2015 |
Francisco Lopes da Silva <oblita@gmail.com> |
Sema: code completion for pointer and reference to functions.
llvm-svn: 226865
|
#
0ab906ce |
| 22-Jan-2015 |
Francisco Lopes da Silva <oblita@gmail.com> |
Sema: Add FIXME note
llvm-svn: 226813
|
#
975a9f6e |
| 21-Jan-2015 |
Francisco Lopes da Silva <oblita@gmail.com> |
Initial support for C++ parameter completion
The improved completion in call context now works with:
- Functions. - Member functions. - Constructors. - New expressions. - Function call express
Initial support for C++ parameter completion
The improved completion in call context now works with:
- Functions. - Member functions. - Constructors. - New expressions. - Function call expressions. - Template variants of the previous.
There are still rough edges to be fixed:
- Provide support for optional parameters. (fix known) - Provide support for member initializers. (fix known) - Provide support for variadic template functions. (fix unknown) - Others?
llvm-svn: 226670
show more ...
|
Revision tags: llvmorg-3.6.0-rc1 |
|
#
6eece29d |
| 15-Jan-2015 |
Richard Smith <richard-llvm@metafoo.co.uk> |
PR13699: Include friend declarations in code completion results if they had a prior visible declaration. Prefer to take template parameter names from the first declaration.
Testcase from a patch by
PR13699: Include friend declarations in code completion results if they had a prior visible declaration. Prefer to take template parameter names from the first declaration.
Testcase from a patch by Francisco Lopes!
llvm-svn: 226083
show more ...
|
#
2e0c8f79 |
| 27-Dec-2014 |
Nico Weber <nicolasweber@gmx.de> |
Address review feedback on r221933.
Remove ObjCMethodList::Count, instead store a "has more than one decl" bit in the low bit of the ObjCMethodDecl pointer, using a PointerIntPair.
Most of this pat
Address review feedback on r221933.
Remove ObjCMethodList::Count, instead store a "has more than one decl" bit in the low bit of the ObjCMethodDecl pointer, using a PointerIntPair.
Most of this patch is replacing ".Method" with ".getMethod()".
No intended behavior change.
llvm-svn: 224876
show more ...
|
Revision tags: llvmorg-3.5.1, llvmorg-3.5.1-rc2, llvmorg-3.5.1-rc1 |
|
#
82e95a3c |
| 19-Nov-2014 |
David Blaikie <dblaikie@gmail.com> |
Update for LLVM API change to make Small(Ptr)Set::insert return pair<iterator, bool> as per the C++ standard's associative container concept.
llvm-svn: 222335
|
#
8fbe4398 |
| 14-Nov-2014 |
Yaron Keren <yaron.keren@gmail.com> |
Typo fix.
llvm-svn: 222016
|
#
c28ce3ab |
| 30-Sep-2014 |
Ben Langmuir <blangmuir@apple.com> |
Avoid a crash after loading an #undef'd macro in code completion
In code-completion, don't assume there is a MacroInfo for everything, since we aren't serializing the def corresponding to a later #u
Avoid a crash after loading an #undef'd macro in code completion
In code-completion, don't assume there is a MacroInfo for everything, since we aren't serializing the def corresponding to a later #undef in the same module. Also setup the HadMacro bit correctly for undefs to avoid an assertion failure.
rdar://18416901
llvm-svn: 218694
show more ...
|
Revision tags: llvmorg-3.5.0, llvmorg-3.5.0-rc4, llvmorg-3.5.0-rc3, llvmorg-3.5.0-rc2, llvmorg-3.5.0-rc1 |
|
#
03376dc2 |
| 07-Jul-2014 |
Alp Toker <alp@nuanti.com> |
Switch over a few uses of param_begin() to parameters()
llvm-svn: 212442
|
#
034bbd5d |
| 30-Jun-2014 |
Alp Toker <alp@nuanti.com> |
Extract an isReservedName() function
We'll want to share the implementation if anything else decides to check for reserved names in future, so make this little snippet of code more discoverable.
Al
Extract an isReservedName() function
We'll want to share the implementation if anything else decides to check for reserved names in future, so make this little snippet of code more discoverable.
Also remove the __va_list_tag and __builtin_va_list special-case checks. They're leftovers from before when the reserved name logic was added.
No change in functionality.
llvm-svn: 212006
show more ...
|
#
01a75985 |
| 29-May-2014 |
Nikola Smiljanic <popizdeh@gmail.com> |
Refactoring. Remove release and take methods from ActionResult. Rename takeAs to getAs.
llvm-svn: 209800
|
#
c3ec149b |
| 26-May-2014 |
Craig Topper <craig.topper@gmail.com> |
[C++11] Use 'nullptr'. Sema edition.
llvm-svn: 209613
|
Revision tags: llvmorg-3.4.2, llvmorg-3.4.2-rc1 |
|
#
f3ca2698 |
| 10-May-2014 |
Benjamin Kramer <benny.kra@googlemail.com> |
Decouple ExprCXX.h and DeclCXX.h and clean up includes a bit.
Required pulling LambdaExpr::Capture into its own header. No functionality change.
llvm-svn: 208470
|