CarlosAlbertoEnciso added a comment.
Hi,
It seems that your patch is causing an error in the tests for
http://lab.llvm.org:8011/builders/clang-x64-ninja-win7
http://lab.llvm.org:8011/builders/clang-x64-ninja-win7/builds/11510/steps/ninja%20check%201/logs/FAIL%3A%20Extra%20Tools%20Unit%20Tests%3
petpav01 created this revision.
petpav01 added reviewers: javed.absar, chill, rnk.
Herald added subscribers: cfe-commits, kristof.beyls.
Code in `CodeGenModule::SetFunctionAttributes()` can set an empty attribute
`implicit-section-name` on a function that is affected by `#pragma clang
text="sect
ioeric created this revision.
ioeric added a reviewer: ilya-biryukov.
Herald added a subscriber: cfe-commits.
Repository:
rC Clang
https://reviews.llvm.org/D48917
Files:
lib/Sema/SemaCodeComplete.cpp
unittests/Sema/CodeCompleteTest.cpp
Index: unittests/Sema/CodeCompleteTest.cpp
==
ebevhan added inline comments.
Comment at: lib/Basic/FixedPoint.cpp:40
+ if (DstWidth > Val.getBitWidth())
+Val = Val.extend(DstWidth);
+ if (Upscaling)
leonardchan wrote:
> ebevhan wrote:
> > It should be possible to replace this with `extOrTrunc` and move
Author: sammccall
Date: Wed Jul 4 01:27:28 2018
New Revision: 336242
URL: http://llvm.org/viewvc/llvm-project?rev=336242&view=rev
Log:
[clangd] FileDistance: don't add duplicate edges
Modified:
clang-tools-extra/trunk/clangd/FileDistance.cpp
Modified: clang-tools-extra/trunk/clangd/FileDist
chill added inline comments.
Comment at: test/CodeGen/clang-sections-attribute.c:1
+// RUN: %clang_cc1 -emit-llvm -triple arm-none-eabi -o - %s | FileCheck %s
+
Isn't it possible for the test to fail if the Arm target is not configured?
Repository:
rC Clang
Author: gbuella
Date: Wed Jul 4 01:32:02 2018
New Revision: 336243
URL: http://llvm.org/viewvc/llvm-project?rev=336243&view=rev
Log:
NFC - typo fix in test/CodeGen/avx512f-builtins.c
Modified:
cfe/trunk/test/CodeGen/avx512f-builtins.c
Modified: cfe/trunk/test/CodeGen/avx512f-builtins.c
URL:
ilya-biryukov updated this revision to Diff 154063.
ilya-biryukov marked an inline comment as done.
ilya-biryukov added a comment.
- Better recovery for invalid decls that do have an injected class name
- Move the test to SemaCXX
Repository:
rC Clang
https://reviews.llvm.org/D48880
Files:
ilya-biryukov added a comment.
Thanks for taking a look!
Repository:
rC Clang
https://reviews.llvm.org/D48880
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
ilya-biryukov added a comment.
Generally LG, just one comment.
Comment at: lib/Sema/SemaCodeComplete.cpp:3744
AddMacroResults(PP, Results, false, PreferredTypeIsPointer);
- HandleCodeCompleteResults(this, CodeCompleter,
-CodeCompletionContext(CodeCompleti
Author: ibiryukov
Date: Wed Jul 4 01:50:12 2018
New Revision: 336244
URL: http://llvm.org/viewvc/llvm-project?rev=336244&view=rev
Log:
[Sema] Fix crash in getConstructorName.
Summary:
Can happen when getConstructorName is called on invalid decls,
specifically the ones that do not have the inject
This revision was automatically updated to reflect the committed changes.
Closed by commit rC336244: [Sema] Fix crash in getConstructorName. (authored by
ibiryukov, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D48880?vs=154063&id=154064#toc
Repository:
rC Clang
https://
Author: sammccall
Date: Wed Jul 4 01:52:13 2018
New Revision: 336246
URL: http://llvm.org/viewvc/llvm-project?rev=336246&view=rev
Log:
[clangd] FileDistance: missing constexpr
Modified:
clang-tools-extra/trunk/clangd/FileDistance.cpp
Modified: clang-tools-extra/trunk/clangd/FileDistance.cpp
baloghadamsoftware updated this revision to Diff 154066.
baloghadamsoftware added a comment.
Adding of transition removed since it is part of
https://reviews.llvm.org/D47417.
https://reviews.llvm.org/D48427
Files:
lib/StaticAnalyzer/Checkers/IteratorChecker.cpp
Index: lib/StaticAnalyzer/Ch
hokein added subscribers: bkramer, hokein.
hokein added a comment.
I'm not familiar with this part of code, but the change looks fine to me. I
think @bkramer is the right person to review it.
Please make sure the style align with LLVM code style.
Comment at: lib/Basic/Virtual
Author: sammccall
Date: Wed Jul 4 02:01:04 2018
New Revision: 336248
URL: http://llvm.org/viewvc/llvm-project?rev=336248&view=rev
Log:
[clangd] FileDistance: temporarily disable in CodeComplete, it's behaving badly
Modified:
clang-tools-extra/trunk/clangd/CodeComplete.cpp
Modified: clang-to
GBuella created this revision.
GBuella added reviewers: compnerd, espindola.
Herald added a subscriber: cfe-commits.
Repository:
rC Clang
https://reviews.llvm.org/D48921
Files:
test/CodeGenCXX/runtime-dllstorage.cpp
Index: test/CodeGenCXX/runtime-dllstorage.cpp
ilya-biryukov added a reviewer: ilya-biryukov.
ilya-biryukov added a comment.
Mimicing RealFS seems like the right thing to do here, so I would vouch for
checking this change in.
I'm a little worried that there are tests/clients relying on the old behavior,
have you run all the tests?
Also, cou
ilya-biryukov added a comment.
> I think the fixing way is to normalize the file path from AST (making it
> absolute).
Totally agree. Could we run the code used to get the URI to store in the
dynamic index? Should we expose and reuse code in `getSymbolLocation()` from
`SymbolCollector.cpp`?
Author: ioeric
Date: Wed Jul 4 02:08:40 2018
New Revision: 336249
URL: http://llvm.org/viewvc/llvm-project?rev=336249&view=rev
Log:
Try to fix FileDistance test on windows.
http://lab.llvm.org:8011/builders/clang-x64-ninja-win7/builds/11510/steps/ninja%20check%201/logs/FAIL%3A%20Extra%20Tools%20
Hi Carlos, thanks for letting us know! I sent r336249 to fix the windows
test.
On Wed, Jul 4, 2018 at 9:51 AM Carlos Alberto Enciso via Phabricator <
revi...@reviews.llvm.org> wrote:
> CarlosAlbertoEnciso added a comment.
>
> Hi,
>
> It seems that your patch is causing an error in the tests for
>
ioeric added a subscriber: sammccall.
ioeric added a comment.
Hi Carlos, thanks for letting us know! I sent r336249 to fix the windows
test.
Repository:
rL LLVM
https://reviews.llvm.org/D48441
___
cfe-commits mailing list
cfe-commits@lists.llvm.o
ilya-biryukov added a comment.
Sorry, have missed the @hokein 's comments, so one of mine seems like a
duplicate.
Repository:
rC Clang
https://reviews.llvm.org/D48903
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/
petpav01 added inline comments.
Comment at: test/CodeGen/clang-sections-attribute.c:1
+// RUN: %clang_cc1 -emit-llvm -triple arm-none-eabi -o - %s | FileCheck %s
+
chill wrote:
> Isn't it possible for the test to fail if the Arm target is not configured?
I think
ioeric added inline comments.
Comment at: lib/Sema/SemaCodeComplete.cpp:3744
AddMacroResults(PP, Results, false, PreferredTypeIsPointer);
- HandleCodeCompleteResults(this, CodeCompleter,
-CodeCompletionContext(CodeCompletionContext::CCC_Expression,
---
balazske updated this revision to Diff 154073.
balazske added a comment.
- Updates according to review comments
Repository:
rC Clang
https://reviews.llvm.org/D48628
Files:
lib/AST/ASTImporter.cpp
lib/AST/ASTStructuralEquivalence.cpp
unittests/AST/ASTImporterTest.cpp
unittests/AST/Str
ilya-biryukov accepted this revision.
ilya-biryukov added a comment.
This revision is now accepted and ready to land.
LGTM with a minor NIT
Comment at: clangd/global-symbol-builder/GlobalSymbolBuilderMain.cpp:88
+(CI.getDiagnosticClient().getNumErrors() > 0)) {
+
martong marked an inline comment as done.
martong added inline comments.
Comment at: lib/AST/ASTImporter.cpp:2085
}
+ } else {
+if (!IsStructuralMatch(D, FoundRecord, false))
balazske wrote:
> martong wrote:
> > a_sidorin wrote:
ilya-biryukov added inline comments.
Comment at: lib/Sema/SemaCodeComplete.cpp:3744
AddMacroResults(PP, Results, false, PreferredTypeIsPointer);
- HandleCodeCompleteResults(this, CodeCompleter,
-CodeCompletionContext(CodeCompletionContext::CCC_Expression,
ioeric added inline comments.
Comment at: clangd/global-symbol-builder/GlobalSymbolBuilderMain.cpp:88
+(CI.getDiagnosticClient().getNumErrors() > 0)) {
+ llvm::errs() << "Found errors in the translation unit. Igoring "
+ "collected sy
CarlosAlbertoEnciso added a comment.
In https://reviews.llvm.org/D46190#1135688, @rsmith wrote:
> The right way to handle this is to pass both the ultimately-selected
> declaration and the declaration found by name lookup into the calls to
> `MarkAnyDeclReferenced` and friends. We should mark t
CarlosAlbertoEnciso added a comment.
In https://reviews.llvm.org/D46190#1135295, @probinson wrote:
> Style comments.
> The two new Sema methods (for namespaces and using references) are C++
> specific, so SemaDeclCXX.cpp would seem like a more appropriate home for them.
Both functions have be
ilya-biryukov added inline comments.
Comment at: lib/Sema/SemaCodeComplete.cpp:3744
AddMacroResults(PP, Results, false, PreferredTypeIsPointer);
- HandleCodeCompleteResults(this, CodeCompleter,
-CodeCompletionContext(CodeCompletionContext::CCC_Expression,
ioeric updated this revision to Diff 154077.
ioeric added a comment.
- Addressed review comment.
Repository:
rC Clang
https://reviews.llvm.org/D48917
Files:
lib/Sema/SemaCodeComplete.cpp
unittests/Sema/CodeCompleteTest.cpp
Index: unittests/Sema/CodeCompleteTest.cpp
=
ioeric added inline comments.
Comment at: lib/Sema/SemaCodeComplete.cpp:3744
AddMacroResults(PP, Results, false, PreferredTypeIsPointer);
- HandleCodeCompleteResults(this, CodeCompleter,
-CodeCompletionContext(CodeCompletionContext::CCC_Expression,
---
Author: ioeric
Date: Wed Jul 4 02:43:35 2018
New Revision: 336252
URL: http://llvm.org/viewvc/llvm-project?rev=336252&view=rev
Log:
[clangd] Avoid collecting symbols from broken TUs in global-symbol-builder.
Summary:
For example, template parameter might not be resolved in a broken TU,
which can
This revision was automatically updated to reflect the committed changes.
Closed by commit rL336252: [clangd] Avoid collecting symbols from broken TUs in
global-symbol-builder. (authored by ioeric, committed by ).
Herald added a subscriber: llvm-commits.
Repository:
rL LLVM
https://reviews.llv
ilya-biryukov added inline comments.
Comment at: clangd/global-symbol-builder/GlobalSymbolBuilderMain.cpp:88
+(CI.getDiagnosticClient().getNumErrors() > 0)) {
+ llvm::errs() << "Found errors in the translation unit. Igoring "
+ "colle
Author: ioeric
Date: Wed Jul 4 02:54:23 2018
New Revision: 336253
URL: http://llvm.org/viewvc/llvm-project?rev=336253&view=rev
Log:
[clangd] Cleanup unittest: URIs. NFC.
Modified:
clang-tools-extra/trunk/unittests/clangd/FileDistanceTests.cpp
Modified: clang-tools-extra/trunk/unittests/clan
ilya-biryukov accepted this revision.
ilya-biryukov added a comment.
This revision is now accepted and ready to land.
LGTM
Repository:
rC Clang
https://reviews.llvm.org/D48917
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.l
Author: ioeric
Date: Wed Jul 4 03:01:18 2018
New Revision: 336255
URL: http://llvm.org/viewvc/llvm-project?rev=336255&view=rev
Log:
[SemaCodeComplete] Make sure visited contexts are passed to completion results
handler.
Reviewers: ilya-biryukov
Subscribers: cfe-commits
Differential Revision:
This revision was automatically updated to reflect the committed changes.
Closed by commit rC336255: [SemaCodeComplete] Make sure visited contexts are
passed to completion results… (authored by ioeric, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D48917?vs=154077&id=154080#
deepak2427 added a comment.
I encountered the issue while working with the unroller and found that it was
not following the pragma info, and traced it back to the issue with metadata.
As far as I understood, for for-loops and while-loops, we add the metadata only
to the loop back-edge. So it wou
Author: omtcyfz
Date: Wed Jul 4 03:18:03 2018
New Revision: 336257
URL: http://llvm.org/viewvc/llvm-project?rev=336257&view=rev
Log:
[clang-tools-extra] Cleanup documentation routine
The following issues are resolved:
* Doxygen didn't generate documentation for a bunch of existing tools
due to
ilya-biryukov added a comment.
I would argue this should be handled by the clients instead. Adding global
state and locking is complicated. (And ASTUnit is complicated enough).
What are the use-cases of creating multiple `ASTUnit` inside the same process
for the same file? Which clients do that
This revision was automatically updated to reflect the committed changes.
Closed by commit rL336257: [clang-tools-extra] Cleanup documentation routine
(authored by omtcyfz, committed by ).
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.org/D47537?vs=15008
hans created this revision.
hans added reviewers: thakis, majnemer.
A Chromium developer reported a bug which turned out to be a mangling collision
between these two literals:
char s[] = "foo";
char t[32] = "foo";
They may look the same, but for the initialization of t we will (under some
balazske added inline comments.
Comment at: lib/AST/ASTImporter.cpp:2454
+ if (IsStructuralMatch(D, FoundFunction)) {
+const FunctionDecl *Definition = nullptr;
+if (D->doesThisDeclarationHaveABody() &&
This change with `Definitio
hans added a comment.
I couldn't get MSVC to create a symbol with padding at the end; they seem to
always insert the padding with a separate loop during initialization, but this
does show the truncated case: https://godbolt.org/g/B8ktA3
https://reviews.llvm.org/D48928
__
Author: ioeric
Date: Wed Jul 4 03:39:48 2018
New Revision: 336260
URL: http://llvm.org/viewvc/llvm-project?rev=336260&view=rev
Log:
[clangd] only ignore collected symbols if TU has uncompilable errors.
Modified:
clang-tools-extra/trunk/clangd/global-symbol-builder/GlobalSymbolBuilderMain.cp
EricWF added a comment.
Are there any tests which actually exercise the new behavior?
Comment at: libcxx/include/memory:1665
+(is_same::type> >::value
+|| is_same >::value
+|| !__has_construct::value) &&
I'm not sure
CarlosAlbertoEnciso added a comment.
In https://reviews.llvm.org/D48441#1151889, @ioeric wrote:
> Hi Carlos, thanks for letting us know! I sent r336249 to fix the windows
> test.
Hi @ioeric,
Thanks very much. Happy to help.
Repository:
rL LLVM
https://reviews.llvm.org/D48441
_
Author: ericwf
Date: Wed Jul 4 04:14:18 2018
New Revision: 336261
URL: http://llvm.org/viewvc/llvm-project?rev=336261&view=rev
Log:
Add missing include for size_t
Modified:
cfe/trunk/include/clang/Basic/Stack.h
Modified: cfe/trunk/include/clang/Basic/Stack.h
URL:
http://llvm.org/viewvc/llv
yvvan added a comment.
@ilya-biryukov Sorry. I didn't have time to post comments here.
The usecase that we have is a supportive translation unit for code completion.
Probably you use something similar in clangd not to wait for the TU to be
reparsed after a change?
The gain from this change is bo
Author: gbuella
Date: Wed Jul 4 04:21:44 2018
New Revision: 336262
URL: http://llvm.org/viewvc/llvm-project?rev=336262&view=rev
Log:
NFC - Fix typo in test/Layout/itanium-pack-and-align.cpp
Modified:
cfe/trunk/test/Layout/itanium-pack-and-align.cpp
Modified: cfe/trunk/test/Layout/itanium-pa
Author: gbuella
Date: Wed Jul 4 04:26:09 2018
New Revision: 336263
URL: http://llvm.org/viewvc/llvm-project?rev=336263&view=rev
Log:
NFC - Fix typo in test/CodeGenObjC/gnustep2-class.m
Modified:
cfe/trunk/test/CodeGenObjC/gnustep2-class.m
Modified: cfe/trunk/test/CodeGenObjC/gnustep2-class.
Author: gbuella
Date: Wed Jul 4 04:29:21 2018
New Revision: 336264
URL: http://llvm.org/viewvc/llvm-project?rev=336264&view=rev
Log:
NFC - Fix type in builtins-ppc-p9vector.c test
Modified:
cfe/trunk/test/CodeGen/builtins-ppc-p9vector.c
Modified: cfe/trunk/test/CodeGen/builtins-ppc-p9vector
CarlosAlbertoEnciso updated this revision to Diff 154091.
CarlosAlbertoEnciso added a comment.
Update the patch to address the comments from the reviewers.
https://reviews.llvm.org/D46190
Files:
include/clang/Sema/Lookup.h
include/clang/Sema/Sema.h
include/clang/Sema/SemaInternal.h
lib/
CarlosAlbertoEnciso added inline comments.
Comment at: lib/Sema/Sema.cpp:1884-1885
+ ND = NA->getAliasedNamespace();
+ if (auto *NNS = NA->getQualifier())
+MarkNamespaceAliasReferenced(NNS->getAsNamespaceAlias());
+}
rsmith wrote:
> The loop
ilya-biryukov added a comment.
I agree that the optimization is compelling, we do also share preamble in
clangd and run code completion in parallel with other actions that need an AST.
However, I would argue that a proper way to introduce the optimization would be
to change interface of `ASTUnit
ioeric created this revision.
ioeric added a reviewer: sammccall.
Herald added subscribers: cfe-commits, jkorous, MaskRay, ilya-biryukov.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D48933
Files:
clangd/Quality.cpp
unittests/clangd/QualityTests.cpp
Index: unittests/clangd
Author: meinersbur
Date: Tue Jul 3 18:37:11 2018
New Revision: 336239
URL: http://llvm.org/viewvc/llvm-project?rev=336239&view=rev
Log:
[Sema] Consider all format_arg attributes.
If a function has multiple format_arg attributes, clang only considers
the first it finds (because AttributeLists are
gerazo added a comment.
@a.sidorin what do you think?
https://reviews.llvm.org/D47946
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Author: r.stahl
Date: Wed Jul 4 06:34:05 2018
New Revision: 336269
URL: http://llvm.org/viewvc/llvm-project?rev=336269&view=rev
Log:
[ASTImporter] import macro source locations
Summary: Implement full import of macro expansion info with spelling and
expansion locations.
Reviewers: a.sidorin, k
This revision was automatically updated to reflect the committed changes.
r.stahl marked an inline comment as done.
Closed by commit rC336269: [ASTImporter] import macro source locations
(authored by r.stahl, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D47698?vs=152633&id=
sammccall created this revision.
sammccall added a reviewer: ioeric.
Herald added subscribers: cfe-commits, jkorous, MaskRay, ilya-biryukov.
Surface it in the completion items C++ API, and when a flag is set.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D48938
Files:
clangd/
ilya-biryukov created this revision.
ilya-biryukov added a reviewer: sammccall.
Herald added subscribers: jkorous, MaskRay, ioeric, javed.absar.
To avoid doing extra work of processing headers in the preamble
mutilple times in parallel.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.
ioeric accepted this revision.
ioeric added a comment.
This revision is now accepted and ready to land.
lgtm. neat!
Comment at: clangd/index/Index.cpp:50
+return OS << "unknown";
+ static char Sigils[] = "ADSM4567";
+ for (unsigned I = 0; I < sizeof(Sigils); ++I)
simark added a comment.
In https://reviews.llvm.org/D48903#1151847, @hokein wrote:
> I'm not familiar with this part of code, but the change looks fine to me. I
> think @bkramer is the right person to review it.
>
> Please make sure the style align with LLVM code style.
Woops indeed I forgot t
simark added a comment.
In https://reviews.llvm.org/D48903#1151866, @ilya-biryukov wrote:
> Mimicing RealFS seems like the right thing to do here, so I would vouch for
> checking this change in.
> I'm a little worried that there are tests/clients relying on the old
> behavior, have you run all
MTC added a comment.
Thanks for your review, NoQ!
Comment at: lib/StaticAnalyzer/Checkers/BlockInCriticalSectionChecker.cpp:68
: IILockGuard(nullptr), IIUniqueLock(nullptr),
- LockFn("lock"), UnlockFn("unlock"), SleepFn("sleep"), GetcFn("getc"),
- FgetsFn("fgets"
This revision was automatically updated to reflect the committed changes.
Closed by commit rC336275: [analyzer][ctu] fix unsortable diagnostics (authored
by r.stahl, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D48474?vs=152433&id=154107#toc
Repository:
rC Clang
https:/
Author: r.stahl
Date: Wed Jul 4 07:12:58 2018
New Revision: 336275
URL: http://llvm.org/viewvc/llvm-project?rev=336275&view=rev
Log:
[analyzer][ctu] fix unsortable diagnostics
Summary: In the provided test case the PathDiagnostic compare function was not
able to find a difference.
Reviewers: x
We've started seeing assertion failures after this commit.
assert.h assertion failed at
llvm/tools/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp:485 in static
clang::ento::ProgramStateRef
clang::ento::ExprEngine::elideDestructor(clang::ento::ProgramStateRef,
const clang::CXXBindTemporaryExpr *, cons
We've started seeing an assertion failure after this commit:
assert.h assertion failed at llvm/tools/clang/lib/Analysis/CFG.cpp:1266 in
void (anonymous namespace)::CFGBuilder::findConstructionContexts(const
clang::ConstructionContextLayer *, clang::Stmt *): CE->getNumArgs() == 1
The stack trace is
nemanjai accepted this revision.
nemanjai added a comment.
This revision is now accepted and ready to land.
Other than a few style nits that can be fixed on the commit, this LGTM.
Comment at: include/clang/AST/Type.h:1802
bool isFloat16Type() const; // C11 extension ISO
r.stahl created this revision.
r.stahl added reviewers: martong, a.sidorin, balazske, xazax.hun.
Herald added subscribers: cfe-commits, rnkovacs.
On constructors that do not take the end source location, it was not imported.
Fixes test from https://reviews.llvm.org/D47698 /
https://reviews.llvm.
r.stahl added a comment.
In https://reviews.llvm.org/D47698#1141871, @r.stahl wrote:
> improved code quality; added nested macro test. it "works", but is disabled
> because it revealed another bug: the function end location is not imported.
> will send a patch
Related to this.
Repository:
Author: alexfh
Date: Wed Jul 4 08:19:49 2018
New Revision: 336283
URL: http://llvm.org/viewvc/llvm-project?rev=336283&view=rev
Log:
[clang-tidy] Fix http://llvm.org/PR38055
Modified:
clang-tools-extra/trunk/clang-tidy/misc/UnusedParametersCheck.cpp
clang-tools-extra/trunk/test/clang-tidy
ilya-biryukov created this revision.
ilya-biryukov added a reviewer: sammccall.
Herald added a subscriber: ioeric.
Will be used in clangd, see the follow-up change.
Clangd does not use comments read from PCH to avoid crashes due to
changed contents of the file. However, reading them considerably s
ilya-biryukov created this revision.
ilya-biryukov added a reviewer: sammccall.
Herald added subscribers: jkorous, MaskRay, ioeric.
To avoid wasting time deserializing them on code completion and
further reparses.
We do not use the comments anyway, because we cannot rely on the file
contents stay
ilya-biryukov added a comment.
Not sure about two things:
- Using PreprocessorOptions for plumbing this setting. I'd rather put it into
FrontendOptions, but there seems to be no way to get those in the ASTWriter...
Happy to search for the alternatives
- Lack of tests. I'm not sure how to proper
simark updated this revision to Diff 154118.
simark added a comment.
- Fixed formatting (ran git-clang-format)
- Fixed expectation in TEST_F(InMemoryFileSystemTest, WorkingDirectory)
- Added test TEST_F(InMemoryFileSystemTest, StatusName)
Repository:
rC Clang
https://reviews.llvm.org/D48903
simark added a comment.
I ran `ninja clang-test`:
Testing Time: 1720.20s
Expected Passes: 12472
Expected Failures : 18
Unsupported Tests : 263
Repository:
rC Clang
https://reviews.llvm.org/D48903
___
cfe-commits mailing list
martong added inline comments.
Comment at: lib/AST/ASTImporter.cpp:2559
D->isImplicit());
+ToFunction->setRangeEnd(Importer.Import(D->getLocEnd()));
} else if (auto *FromConversion = dyn_cast(D)) {
Why don't we n
alexfh added a comment.
Some patterns are covered by compiler diagnostics:
https://godbolt.org/g/HvsjnP. Is there any benefit in re-implementing them?
Comment at: clang-tidy/misc/IncorrectPointerCastCheck.cpp:60
+diag(CastExpr->getLocStart(),
+ "Do not use
hfinkel added a comment.
In https://reviews.llvm.org/D48721#1150677, @bjope wrote:
> In https://reviews.llvm.org/D48721#1150361, @hfinkel wrote:
>
> > In https://reviews.llvm.org/D48721#1150333, @bjope wrote:
> >
> > > Is the fault that the metadata only should be put on the back edge, not
> > >
ilya-biryukov created this revision.
ilya-biryukov added reviewers: sammccall, ioeric.
PrecompiledPreamble hasn't checked the system dependencies changed
before. This result in invalid preamble not being rebuilt if headers
that changed were found in -isystem include paths.
This pattern is sometim
ilya-biryukov created this revision.
ilya-biryukov added reviewers: sammccall, ioeric.
Herald added subscribers: jkorous, MaskRay.
Checks that preambles are properly invalidated when headers from
-isystem paths change.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D48947
Files:
hfinkel added a comment.
In https://reviews.llvm.org/D48721#1152023, @deepak2427 wrote:
> I encountered the issue while working with the unroller and found that it was
> not following the pragma info, and traced it back to the issue with metadata.
> As far as I understood, for for-loops and whi
ilya-biryukov added a comment.
I usually run `ninja check-clang check-clang-tools` for clang changes. Have
never used `clang-test`, not sure what it does.
I ran it with this change, found a few failures from clang-move:
Failing Tests (5):
Extra Tools Unit Tests ::
clang-move/./ClangMove
simark added a comment.
In https://reviews.llvm.org/D48903#1152485, @ilya-biryukov wrote:
> I usually run `ninja check-clang check-clang-tools` for clang changes. Have
> never used `clang-test`, not sure what it does.
I think `clang-test` is an alias for `check-clang`.
> I ran it with this ch
boga95 added a comment.
How can I commit it?
Comment at: docs/clang-tidy/checks/cert-msc51-cpp.rst:7
+This check flags all pseudo-random number engines, engine adaptor
+instantiations and `srand()` when initialized or seeded with default argument,
+constant expression or any us
xazax.hun added a comment.
In https://reviews.llvm.org/D48027#1142324, @MTC wrote:
> - There is possible match the wrong AST node, e.g. for the NamedDecl `foo()`,
> if the function body has the `a::b::x`, when we match `a::b::X()`, we will
> match `foo()` . Because I'm not familiar with ASTMatc
mstorsjo added a comment.
Ping @joerg
https://reviews.llvm.org/D38680
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
lebedev.ri added a comment.
Ping?
Repository:
rL LLVM
https://reviews.llvm.org/D45179
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Author: ericwf
Date: Wed Jul 4 13:16:05 2018
New Revision: 336297
URL: http://llvm.org/viewvc/llvm-project?rev=336297&view=rev
Log:
Remove old workaround that is no longer needed
Modified:
libcxx/trunk/utils/libcxx/test/config.py
Modified: libcxx/trunk/utils/libcxx/test/config.py
URL:
http
simark created this revision.
Herald added subscribers: cfe-commits, ioeric.
Following https://reviews.llvm.org/D48903 ([VirtualFileSystem]
InMemoryFileSystem::status: Return
a Status with the requested name), the paths output by clang-move in the
FileToReplacements map may contain leading "./".
simark added a comment.
I opened https://reviews.llvm.org/D48951 to fix the failures in clang-move.
Repository:
rC Clang
https://reviews.llvm.org/D48903
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman
a_sidorin accepted this revision.
a_sidorin added a comment.
This revision is now accepted and ready to land.
Nice!
Repository:
rC Clang
https://reviews.llvm.org/D48773
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org
1 - 100 of 115 matches
Mail list logo