bkramer accepted this revision.
bkramer added a comment.
This revision is now accepted and ready to land.
Looks good, thanks!
Repository:
rL LLVM
http://reviews.llvm.org/D19323
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
Author: d0k
Date: Wed Apr 20 07:43:43 2016
New Revision: 266870
URL: http://llvm.org/viewvc/llvm-project?rev=266870=rev
Log:
[include-fixer] Add a prototype for a new include fixing tool.
Summary:
The goal of this tool is fairly simple, look up unknown identifiers in a
global database and add
bkramer marked 8 inline comments as done.
Comment at: include-fixer/IncludeFixer.cpp:132
@@ +131,3 @@
+
+private:
+ /// Query the database for a given identifier.
klimek wrote:
> Can we sort this so the public interface comes first? Also, why is the public
>
bkramer updated this revision to Diff 54344.
bkramer added a comment.
From now on you shall be known as InMemoryXrefsDB.
http://reviews.llvm.org/D19314
Files:
CMakeLists.txt
include-fixer/CMakeLists.txt
include-fixer/InMemoryXrefsDB.cpp
include-fixer/InMemoryXrefsDB.h
bkramer updated this revision to Diff 54342.
bkramer added a comment.
- FixedXrefsDB -> FakeXrefsDB
- FakeXrefsDB is now configurable
- Cosmetic & comment fixes.
- Moved query to private methods.
- Always insert new includes at the top, let clang-format sort out the rest
(not yet implemented in
Author: d0k
Date: Tue Apr 12 06:49:52 2016
New Revision: 266057
URL: http://llvm.org/viewvc/llvm-project?rev=266057=rev
Log:
Remove unused diagnostics. NFC.
Modified:
cfe/trunk/include/clang/Basic/DiagnosticLexKinds.td
cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
Modified:
On Mon, Apr 11, 2016 at 11:15 PM, Martin Probst wrote:
>> > Was/is the 2 correct then? (if it was next(rbegin, 2) that'd be
>> > equivalent
>> > to prev(end, 3), yes?)
>>
>> I think it is from looking at the test case, looping in martin to see
>> whether I'm right :)
>
>
> At
On Mon, Apr 11, 2016 at 6:48 PM, David Blaikie <dblai...@gmail.com> wrote:
>
>
> On Mon, Apr 11, 2016 at 5:19 AM, Benjamin Kramer via cfe-commits
> <cfe-commits@lists.llvm.org> wrote:
>>
>> Author: d0k
>> Date: Mon Apr 11 07:19:19 2016
>> New Revisio
Author: d0k
Date: Mon Apr 11 07:19:19 2016
New Revision: 265934
URL: http://llvm.org/viewvc/llvm-project?rev=265934=rev
Log:
[clang-format] Walk backwards from end() instead of forwards from rend().
This should've been forwards from rbegin(), reverse iterators are just
too confusing to be used
Author: d0k
Date: Mon Apr 11 05:16:37 2016
New Revision: 265926
URL: http://llvm.org/viewvc/llvm-project?rev=265926=rev
Log:
Don't clutter the test directory with temporary IR files.
-emit-llvm emits a file, -emit-llvm-only doesn't.
Modified:
cfe/trunk/test/Sema/attr-ifunc.c
Modified:
Author: d0k
Date: Mon Apr 11 03:26:13 2016
New Revision: 265918
URL: http://llvm.org/viewvc/llvm-project?rev=265918=rev
Log:
Remove redundant conditions of the form (A || (!A && B)) -> (A || B)
Found by cppcheck! PR27286 PR27287 PR27288 PR27289
Modified:
cfe/trunk/lib/CodeGen/CGExpr.cpp
Author: d0k
Date: Thu Apr 7 09:55:25 2016
New Revision: 265680
URL: http://llvm.org/viewvc/llvm-project?rev=265680=rev
Log:
[clang-tidy] Remove unnecessary getName() on Decls and Types feeding into a
DiagnosticBuilder
Going through a string removes some of the smarts of the diagnosic printer
Author: d0k
Date: Thu Apr 7 05:14:54 2016
New Revision: 265654
URL: http://llvm.org/viewvc/llvm-project?rev=265654=rev
Log:
Move class into an anonymous namespace. NFC.
Modified:
cfe/trunk/lib/CodeGen/TargetInfo.cpp
Modified: cfe/trunk/lib/CodeGen/TargetInfo.cpp
URL:
bkramer added a subscriber: bkramer.
Comment at: clang-tidy/misc/StringLiteralWithEmbeddedNulCheck.cpp:21
@@ +20,3 @@
+// Retrieve the character at offset |offset| of the string literal |SL|.
+static unsigned int GetCharAt(const StringLiteral *SL, size_t offset) {
+ if (offset
bkramer accepted this revision.
bkramer added a comment.
This revision is now accepted and ready to land.
This landed way back in http://reviews.llvm.org/rL214306.
http://reviews.llvm.org/D4619
___
cfe-commits mailing list
bkramer accepted this revision.
bkramer added a comment.
This revision is now accepted and ready to land.
> OK to commit then?
Yeah, looks good.
Repository:
rL LLVM
http://reviews.llvm.org/D18319
___
cfe-commits mailing list
Author: d0k
Date: Fri Apr 1 05:04:07 2016
New Revision: 265126
URL: http://llvm.org/viewvc/llvm-project?rev=265126=rev
Log:
[Lexer] Let the compiler infer string lengths. No functionality change intended.
Modified:
cfe/trunk/lib/Lex/Lexer.cpp
Modified: cfe/trunk/lib/Lex/Lexer.cpp
URL:
Author: d0k
Date: Fri Apr 1 04:58:45 2016
New Revision: 265125
URL: http://llvm.org/viewvc/llvm-project?rev=265125=rev
Log:
[Lexer] Don't read out of bounds if a conflict marker is at the end of a file
This can happen as we look for '' while scanning tokens but then expect
'\n' to tell
bkramer added a comment.
If we really want to go down this route we should drop the exports file,
putting random symbols in there is not going to fly. I'm not sure what that
would break for libclang users though.
Also make sure that your building without BUILD_SHARED_LIBS, otherwise you'll
Author: d0k
Date: Sun Mar 20 09:24:49 2016
New Revision: 263900
URL: http://llvm.org/viewvc/llvm-project?rev=263900=rev
Log:
[clang-tidy] Update check for API change in r263895.
for range stmts now have split begin and ends, just apply OR to the
condition. Should unbreak the build.
Modified:
On Sun, Mar 20, 2016 at 3:08 AM, Bruno Cardoso Lopes via cfe-commits
wrote:
> Author: bruno
> Date: Sat Mar 19 21:08:48 2016
> New Revision: 263893
>
> URL: http://llvm.org/viewvc/llvm-project?rev=263893=rev
> Log:
> Reapply [2] [VFS] Add 'overlay-relative' field to
Author: d0k
Date: Fri Mar 18 08:31:00 2016
New Revision: 263785
URL: http://llvm.org/viewvc/llvm-project?rev=263785=rev
Log:
Make LookupResult movable again.
We lost copy semantics in r263730, because it only worked for a few very
specific cases. Move semantics don't have this issue. Sadly the
On Fri, Mar 18, 2016 at 5:10 PM, David Blaikie <dblai...@gmail.com> wrote:
>
>
> On Fri, Mar 18, 2016 at 6:31 AM, Benjamin Kramer via cfe-commits
> <cfe-commits@lists.llvm.org> wrote:
>>
>> Author: d0k
>> Date: Fri Mar 18 08:31:00 2016
>> New Revisio
Author: d0k
Date: Thu Mar 17 11:19:51 2016
New Revision: 263718
URL: http://llvm.org/viewvc/llvm-project?rev=263718=rev
Log:
Use a simpler set of mock headers for the vfs+modules crash recovery tests.
The System/ mock is large and too complex for this test. It can cause
the tests to fail in
bkramer accepted this revision.
bkramer added a comment.
This looks good, thanks for the patch. When this goes in please watch the
windows buildbots as plugin support on windows is somewhat broken and we may
have to disable tests there.
Also, while this is a strict improvement and should go in
On Mon, Mar 14, 2016 at 5:50 PM, Richard Smith <rich...@metafoo.co.uk> wrote:
> On 14 Mar 2016 6:28 a.m., "Benjamin Kramer via cfe-commits"
> <cfe-commits@lists.llvm.org> wrote:
>>
>> Author: d0k
>> Date: Mon Mar 14 08:23:58 2016
>> New Rev
Author: d0k
Date: Tue Mar 15 04:41:39 2016
New Revision: 263541
URL: http://llvm.org/viewvc/llvm-project?rev=263541=rev
Log:
Restrict the hack from r263429 to asan and msan.
The other sanitizers don't have backend passes that rely on value names.
Avoid paying the compile time cost of names
; A long time ago I argued that the sanitizers should be using debug info
>> instead of alloca names for this, and I really thought that they had
>> implemented this... Is that not the case?
>>
>> It is really bad that the sanitizers are relying on this stuff...
>>
Author: d0k
Date: Mon Mar 14 09:58:28 2016
New Revision: 263436
URL: http://llvm.org/viewvc/llvm-project?rev=263436=rev
Log:
Revert "Recommitted r261634 "Supporting all entities declared in lexical scope
in LLVM debug info." After fixing PR26715 at r263379."
This reverts commit r263425. Breaks
Author: d0k
Date: Mon Mar 14 08:23:58 2016
New Revision: 263429
URL: http://llvm.org/viewvc/llvm-project?rev=263429=rev
Log:
[Frontend] Disable value name discarding for all sanitizers.
ASan also relies on names on allocas and will emit unhelpful output if
they're not present. Just force-enable
bkramer accepted this revision.
bkramer added a comment.
This revision is now accepted and ready to land.
looks good.
Repository:
rL LLVM
http://reviews.llvm.org/D18141
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
bkramer accepted this revision.
bkramer added a comment.
This revision is now accepted and ready to land.
Patch looks good, only one cosmetic comment.
Comment at: clang-tidy/modernize/UseNullptrCheck.cpp:232
@@ +231,3 @@
+ if (!getMacroAndArgLocations(StartLoc,
bkramer added a comment.
GCC 6 is already doing this and people are already annotating their builds with
-fno-delete-null-pointer-checks. Putting it under a different flag will break
compatibility there :(
http://reviews.llvm.org/D17993
___
bkramer created this revision.
bkramer added reviewers: rsmith, rjmccall.
bkramer added a subscriber: cfe-commits.
Also thread -f(no-)delete-null-pointer-checks through to CodeGen and
make it disable this behavior. It's not a full implementation of that
flag but it would be good to stay
bkramer added a comment.
I'm still not sure if this is the right way to fix it. Maybe @rsmith has an
opinion?
http://reviews.llvm.org/D17762
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
Author: d0k
Date: Fri Mar 4 08:18:52 2016
New Revision: 262716
URL: http://llvm.org/viewvc/llvm-project?rev=262716=rev
Log:
Move class into anonymous namespace. NFC.
Modified:
cfe/trunk/lib/StaticAnalyzer/Checkers/ObjCSuperDeallocChecker.cpp
Modified:
bkramer added a comment.
This doesn't look right to me. Aborting tree transform on a bad source location
seems just wrong. Where is the invalid source location coming from? Also the
backtrace seems related to typo correction, maybe the bug is there?
Repository:
rL LLVM
Author: d0k
Date: Thu Mar 3 02:58:18 2016
New Revision: 262596
URL: http://llvm.org/viewvc/llvm-project?rev=262596=rev
Log:
[libclang] Link clang-tidy plugin into libclang if present.
This is a sad workaround for the lack of plugin support in libclang. Depends
on D17807, a tools-extra change
Author: d0k
Date: Thu Mar 3 02:58:12 2016
New Revision: 262595
URL: http://llvm.org/viewvc/llvm-project?rev=262595=rev
Log:
[clang-tidy] Add "clang-tidy as a clang plugin" skeleton.
This doesn't really do much at the moment. You can load it via libclang
and set the -checks via an extra command
e to be cleaned up (like several have been with LLVM)) or
> because they're project specific (either stylistically, or because they're
> about some project specific API))
>
> On Wed, Mar 2, 2016 at 6:47 AM, Benjamin Kramer via cfe-commits
> <cfe-commits@lists.llvm.org> wro
bkramer created this revision.
bkramer added a reviewer: klimek.
bkramer added a subscriber: cfe-commits.
This doesn't really do much at the moment. You can load it via libclang
and set the -checks via an extra command line argument as illustrated in
the test case. Support for other options
bkramer created this revision.
bkramer added a reviewer: klimek.
bkramer added a subscriber: cfe-commits.
This is a sad workaround for the lack of plugin support in libclang. Depends
on D17807, a tools-extra change that also contains the test case.
This is designed to be easy to remove again if
bkramer added a comment.
This doesn't have a test case. Also I don't understand why this is the correct
fix. If someone is calling one of those method with a file SourceLocation (as
opposed to a macro SourceLocation) they should stop doing that.
Repository:
rL LLVM
On Thu, Feb 18, 2016 at 5:39 PM, David Blaikie wrote:
> Thanks all! Which compiler flagged this? Wonder if/why Clang didn't flag it
> for me?
It was coming from GCC 4.9. Haven't checked if Clang also has this somewhere.
> On Thu, Feb 18, 2016 at 5:27 AM, Phabricator via
Author: d0k
Date: Thu Feb 18 09:30:24 2016
New Revision: 261217
URL: http://llvm.org/viewvc/llvm-project?rev=261217=rev
Log:
[Parse] Code complete expressions in bracket declarators.
Currently we return no results when completing inside of the brackets in
a 'char foo[]' declaration. Let the
bkramer accepted this revision.
bkramer added a comment.
This revision is now accepted and ready to land.
LGTM, will commit it for you.
http://reviews.llvm.org/D17375
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
bkramer added a comment.
I think this is the wrong solution. Per
http://www.dwarfstd.org/ShowIssue.php?issue=140421.1
2. Calculate a secondary hash H' = (((S >> 32) & MASK(k)) | 1).
[...]
4. Let H = (H + H') modulo M. Repeat at Step 3.
So the OR has to happen before the ADD.
Author: d0k
Date: Sun Feb 14 07:18:06 2016
New Revision: 260850
URL: http://llvm.org/viewvc/llvm-project?rev=260850=rev
Log:
Don't leak the ASTUnit when done with testing.
Found by lsan.
Modified:
cfe/trunk/tools/c-index-test/core_main.cpp
Modified:
Author: d0k
Date: Sat Feb 13 07:42:54 2016
New Revision: 260815
URL: http://llvm.org/viewvc/llvm-project?rev=260815=rev
Log:
Reduce the number of implicit StringRef->std::string conversions by threading
StringRef through more APIs.
No functionality change intended.
Modified:
Author: d0k
Date: Sat Feb 13 07:42:41 2016
New Revision: 260814
URL: http://llvm.org/viewvc/llvm-project?rev=260814=rev
Log:
Fix use after free.
Found by asan.
Modified:
cfe/trunk/lib/Lex/Pragma.cpp
Modified: cfe/trunk/lib/Lex/Pragma.cpp
URL:
Author: d0k
Date: Sat Feb 13 09:49:17 2016
New Revision: 260822
URL: http://llvm.org/viewvc/llvm-project?rev=260822=rev
Log:
Don't copy a DenseMap just to do lookup in it.
Also remove the now unused isPodLike specialization. DenseMap only uses
it for copies.
Modified:
Author: d0k
Date: Sat Feb 13 10:00:13 2016
New Revision: 260823
URL: http://llvm.org/viewvc/llvm-project?rev=260823=rev
Log:
RValue refs do not work that way.
Modified:
cfe/trunk/lib/CodeGen/CGCall.cpp
Modified: cfe/trunk/lib/CodeGen/CGCall.cpp
URL:
Author: d0k
Date: Sat Feb 13 12:11:49 2016
New Revision: 260831
URL: http://llvm.org/viewvc/llvm-project?rev=260831=rev
Log:
Fix a leak in the generated code for attributes with strings.
Storing std::strings in attributes simply doesn't work, we never call
the destructor. Use an array of
bkramer added a subscriber: bkramer.
Comment at: include/clang/ASTMatchers/ASTMatchersInternal.h:644
@@ -643,2 +643,3 @@
explicit HasNameMatcher(StringRef Name);
+ explicit HasNameMatcher(ArrayRef Names);
alexfh wrote:
> Why not `ArrayRef`?
That's an
bkramer accepted this revision.
bkramer added a comment.
This revision is now accepted and ready to land.
lg
http://reviews.llvm.org/D15506
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
Author: d0k
Date: Fri Feb 5 05:38:50 2016
New Revision: 259880
URL: http://llvm.org/viewvc/llvm-project?rev=259880=rev
Log:
Unbreak the cmake shared build.
Modified:
clang-tools-extra/trunk/clang-tidy/google/CMakeLists.txt
Modified: clang-tools-extra/trunk/clang-tidy/google/CMakeLists.txt
Author: d0k
Date: Tue Feb 2 08:24:11 2016
New Revision: 259506
URL: http://llvm.org/viewvc/llvm-project?rev=259506=rev
Log:
[StaticAnalyzer] Pull SymExpr and SymbolData into its own header to avoid
cyclic includes.
Added:
cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/SymExpr.h
Author: d0k
Date: Tue Feb 2 08:24:21 2016
New Revision: 259507
URL: http://llvm.org/viewvc/llvm-project?rev=259507=rev
Log:
Make the remaining headers self-contained.
Modified:
cfe/trunk/include/clang/AST/BaseSubobject.h
cfe/trunk/include/clang/AST/DeclOpenMP.h
Author: d0k
Date: Tue Feb 2 10:05:18 2016
New Revision: 259518
URL: http://llvm.org/viewvc/llvm-project?rev=259518=rev
Log:
Make CodeGen headers self-contained.
Modified:
cfe/trunk/lib/CodeGen/CGRecordLayout.h
Modified: cfe/trunk/lib/CodeGen/CGRecordLayout.h
URL:
Author: d0k
Date: Tue Feb 2 05:06:57 2016
New Revision: 259490
URL: http://llvm.org/viewvc/llvm-project?rev=259490=rev
Log:
Make headers self-contained.
Modified:
cfe/trunk/include/clang/Lex/HeaderMap.h
cfe/trunk/include/clang/Lex/MacroArgs.h
cfe/trunk/lib/Analysis/BodyFarm.h
Author: d0k
Date: Tue Feb 2 05:06:51 2016
New Revision: 259489
URL: http://llvm.org/viewvc/llvm-project?rev=259489=rev
Log:
Move DebugInfoKind into its own header to cut the cyclic dependency edge from
Driver to Frontend.
Added:
cfe/trunk/include/clang/Driver/DebugInfoKind.h
Modified:
Author: d0k
Date: Mon Feb 1 11:42:01 2016
New Revision: 259376
URL: http://llvm.org/viewvc/llvm-project?rev=259376=rev
Log:
Move LocInfoType from Sema to AST.
While transient and only used during parsing, LocInfoTypes are still used
from ASTDumper and are part of the AST.
Added:
Author: d0k
Date: Mon Feb 1 07:22:39 2016
New Revision: 259355
URL: http://llvm.org/viewvc/llvm-project?rev=259355=rev
Log:
Remove the egregious PCHContainer layering hack that doesn't seem to be
necessary anymore.
Modified:
cfe/trunk/lib/Basic/FileManager.cpp
Author: d0k
Date: Sat Jan 30 06:16:23 2016
New Revision: 259304
URL: http://llvm.org/viewvc/llvm-project?rev=259304=rev
Log:
[AST] Pull simple method inline.
Modified:
cfe/trunk/include/clang/AST/ASTTypeTraits.h
cfe/trunk/lib/AST/ASTTypeTraits.cpp
Modified:
bkramer updated this revision to Diff 46370.
bkramer added a comment.
Fix comment.
http://reviews.llvm.org/D16718
Files:
include/clang/Tooling/Tooling.h
lib/Tooling/Tooling.cpp
unittests/ASTMatchers/ASTMatchersTest.h
Index: unittests/ASTMatchers/ASTMatchersTest.h
bkramer created this revision.
bkramer added a reviewer: klimek.
bkramer added a subscriber: cfe-commits.
Herald added a subscriber: klimek.
This can be used as a way to modify argv[0] for a clang tool.
http://reviews.llvm.org/D16718
Files:
include/clang/Tooling/Tooling.h
Author: d0k
Date: Fri Jan 29 05:29:02 2016
New Revision: 259187
URL: http://llvm.org/viewvc/llvm-project?rev=259187=rev
Log:
Add an optional ToolName argument to
runToolOnCodeWithArgs/buildASTFromCodeWithArgs.
This can be used as a way to modify argv[0] for a clang tool.
Differential Revision:
bkramer added a subscriber: bkramer.
bkramer added a comment.
Why are you re-adding all those Makefiles?
http://reviews.llvm.org/D16529
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
Author: d0k
Date: Wed Jan 27 04:01:30 2016
New Revision: 258918
URL: http://llvm.org/viewvc/llvm-project?rev=258918=rev
Log:
Update for LLVM change.
Modified:
cfe/trunk/lib/Parse/ParseStmtAsm.cpp
cfe/trunk/tools/driver/cc1as_main.cpp
Modified: cfe/trunk/lib/Parse/ParseStmtAsm.cpp
URL:
bkramer accepted this revision.
bkramer added a reviewer: bkramer.
bkramer added a comment.
This revision is now accepted and ready to land.
Looks good to me, but I don't really now CUDA.
http://reviews.llvm.org/D16559
___
cfe-commits mailing list
Author: d0k
Date: Mon Jan 25 04:34:06 2016
New Revision: 258679
URL: http://llvm.org/viewvc/llvm-project?rev=258679=rev
Log:
Fix printing of types in initializers with suppressed tags.
Tag and specifier printing can be suppressed in Decl::printGroup, but these
suppressions leak into the
On Fri, Jan 15, 2016 at 11:52 PM, David Blaikie via cfe-commits
wrote:
>
>
> On Fri, Jan 15, 2016 at 2:29 PM, Joerg Sonnenberger via cfe-commits
> wrote:
>>
>> Author: joerg
>> Date: Fri Jan 15 16:29:34 2016
>> New Revision: 257947
>>
>>
On Mon, Jan 11, 2016 at 8:08 PM, Owen Anderson wrote:
>
>> On Jan 11, 2016, at 8:25 AM, David Blaikie wrote:
>>
>>
>>
>> On Sun, Jan 10, 2016 at 11:42 PM, Owen Anderson via cfe-commits
>> wrote:
>> resistor created this
bkramer updated this revision to Diff 44472.
bkramer added a comment.
Why not both?
http://reviews.llvm.org/D16058
Files:
lib/Format/WhitespaceManager.cpp
lib/Format/WhitespaceManager.h
unittests/Format/FormatTest.cpp
Index: unittests/Format/FormatTest.cpp
bkramer created this revision.
bkramer added a reviewer: djasper.
bkramer added a subscriber: cfe-commits.
Herald added a subscriber: klimek.
As soon as a comment had whitespace changes inside of the token, we
couldn't identify the whole comment as a trailing comment anymore and
alignment stopped
bkramer updated this revision to Diff 44513.
bkramer added a comment.
- Moved newline check into replaceWhitespaceInToken
- Removed duplicated TokenLength computation
http://reviews.llvm.org/D16058
Files:
lib/Format/WhitespaceManager.cpp
lib/Format/WhitespaceManager.h
bkramer updated this revision to Diff 44508.
bkramer added a comment.
- Renamed flag to IsInsideToken and enabled it for all in-token replacements.
- TokenLength now gets updated to contain all changes on the same line if
they're in the same token.
http://reviews.llvm.org/D16058
Files:
Fixed in r257286, sorry for the breakage.
On Sun, Jan 10, 2016 at 7:59 AM, Ismail Donmez wrote:
> Hi,
>
>> + NormalizedFS.setCurrentWorkingDirectory("/b/c");
>> + NormalizedFS.setCurrentWorkingDirectory(".");
>> + ASSERT_EQ("/b/c",
Author: d0k
Date: Sat Jan 9 10:33:16 2016
New Revision: 257260
URL: http://llvm.org/viewvc/llvm-project?rev=257260=rev
Log:
[vfs] Normalize working directory if requested.
FixedCompilationDatabase sets the working dir to "." by default. For
chdir(".") this is a noop but this lead to
On Sat, Jan 9, 2016 at 4:56 PM, Daniel Jasper via cfe-commits
wrote:
> Author: djasper
> Date: Sat Jan 9 09:56:57 2016
> New Revision: 257259
>
> URL: http://llvm.org/viewvc/llvm-project?rev=257259=rev
> Log:
> Make clang::format::reformat work with non 0-terminated
bkramer accepted this revision.
bkramer added a comment.
This revision is now accepted and ready to land.
LGTM, thanks for the fix!
Comment at: tools/libclang/CIndexInclusionStack.cpp:32
@@ -36,13 +31,3 @@
SmallVector InclusionStack;
- unsigned n =
On Tue, Dec 29, 2015 at 5:14 PM, Alexander Kornienko via cfe-commits
wrote:
> Author: alexfh
> Date: Tue Dec 29 10:14:38 2015
> New Revision: 256562
>
> URL: http://llvm.org/viewvc/llvm-project?rev=256562=rev
> Log:
> [clang-tidy] Fix a use-after-free bug found by asan
Author: d0k
Date: Thu Dec 24 04:07:37 2015
New Revision: 256377
URL: http://llvm.org/viewvc/llvm-project?rev=256377=rev
Log:
Replace llvm::utostr calls in Twine context with Twines. NFC.
Modified:
cfe/trunk/lib/AST/ItaniumMangle.cpp
cfe/trunk/lib/Basic/Targets.cpp
Modified:
Author: d0k
Date: Tue Dec 15 03:30:31 2015
New Revision: 255635
URL: http://llvm.org/viewvc/llvm-project?rev=255635=rev
Log:
[libclang] Add a flag to create the precompiled preamble on the first parse.
Summary:
The current default is to create the preamble on the first reparse, aka
second parse.
bkramer created this revision.
bkramer added reviewers: doug.gregor, klimek.
bkramer added a subscriber: cfe-commits.
The current default is to create the preamble on the first reparse, aka
second parse. This is useful for clients that do not want to block when
opening a file because serializing
bkramer updated this revision to Diff 42749.
bkramer added a comment.
Add test case.
http://reviews.llvm.org/D15490
Files:
include/clang-c/Index.h
include/clang/Frontend/ASTUnit.h
lib/Frontend/ASTUnit.cpp
test/Index/complete-preamble.cpp
tools/c-index-test/c-index-test.c
bkramer created this revision.
bkramer added reviewers: djasper, klimek.
bkramer added a subscriber: cfe-commits.
Herald added a subscriber: klimek.
/* a
* a*/
Now becomes
/*
* a a*/
instead of
/*
* a
* a*/
This is implemented by glueing the next line on while
Author: d0k
Date: Tue Dec 1 13:42:07 2015
New Revision: 254446
URL: http://llvm.org/viewvc/llvm-project?rev=254446=rev
Log:
Avoid picking up system headers in unittest by providing a fake libstdc++ with
a ridiculously high version number.
The host libstdc++ may be horribly broken and we want
Author: d0k
Date: Fri Nov 20 01:57:46 2015
New Revision: 253654
URL: http://llvm.org/viewvc/llvm-project?rev=253654=rev
Log:
Regenerate ASTMatchersReference without CRLF.
Modified:
cfe/trunk/docs/LibASTMatchersReference.html
Modified: cfe/trunk/docs/LibASTMatchersReference.html
URL:
Author: d0k
Date: Wed Nov 18 10:14:27 2015
New Revision: 253466
URL: http://llvm.org/viewvc/llvm-project?rev=253466=rev
Log:
[libclang] Add entry points that take a full command line including argv[0].
This provides both a more uniform interface and makes libclang behave like
clang tooling wrt
bkramer created this revision.
bkramer added a reviewer: klimek.
bkramer added a subscriber: cfe-commits.
This provides both a more uniform interface and makes libclang behave like
clang tooling wrt relative paths against argv[0]. This is necessary for
finding paths to a c++ standard library
bkramer updated this revision to Diff 40269.
bkramer added a comment.
- Add a test case to make sure argv[0] handling actually works.
- Clarify comments a bit.
http://reviews.llvm.org/D14695
Files:
include/clang-c/Index.h
lib/Frontend/CreateInvocationFromCommandLine.cpp
bkramer added a comment.
Can you try setting up the virtual files with the vfs::InMemoryFileSystem
stuff? There are some examples how to set up with OverlayFileSystem in tree.
InMemoryFileSystem was written with windows path separators in mind, I just
never tried to run it on windows :)
bkramer accepted this revision.
bkramer added a comment.
Looks good to me too, do you have commit access?
http://reviews.llvm.org/D13844
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
Author: d0k
Date: Wed Oct 28 08:54:16 2015
New Revision: 251514
URL: http://llvm.org/viewvc/llvm-project?rev=251514=rev
Log:
Put global classes into the appropriate namespace.
Most of the cases belong into an anonymous namespace. No functionality
change intended.
Modified:
Author: d0k
Date: Wed Oct 28 12:16:26 2015
New Revision: 251528
URL: http://llvm.org/viewvc/llvm-project?rev=251528=rev
Log:
Move global classes into anonymous namespaces. NFC.
Modified:
cfe/trunk/lib/AST/ExprConstant.cpp
cfe/trunk/lib/CodeGen/CGCall.cpp
Modified:
bkramer accepted this revision.
bkramer added a comment.
This revision is now accepted and ready to land.
Two minor comments, otherwise looks good:
1. beware of the GCC 4.7 issues and trivial class initializer issues we hit
with this kind of changes earlier.
2. I prefer to leave
bkramer accepted this revision.
bkramer added a comment.
This revision is now accepted and ready to land.
This should be fine. Sorry for the breakage.
http://reviews.llvm.org/D13920
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
Author: d0k
Date: Tue Oct 27 13:34:47 2015
New Revision: 251432
URL: http://llvm.org/viewvc/llvm-project?rev=251432=rev
Log:
Remove unused diagnostic. NFC.
Modified:
cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
URL:
Author: d0k
Date: Wed Oct 28 00:16:37 2015
New Revision: 251499
URL: http://llvm.org/viewvc/llvm-project?rev=251499=rev
Log:
[tidy] Remove stray iostream include from test.
It is unused and we cannot rely on standard headers being present while
executing tests.
Modified:
701 - 800 of 881 matches
Mail list logo