devnexen added a comment.
In https://reviews.llvm.org/D45177#1103781, @alexfh wrote:
> In https://reviews.llvm.org/D45177#1103774, @devnexen wrote:
>
> > In https://reviews.llvm.org/D45177#1103162, @alexfh wrote:
> >
> > > See https://bugs.llvm.org/show_bug.cgi?id=37503 for a test case.
> >
> >
martong created this revision.
martong added reviewers: a.sidorin, r.stahl, xazax.hun.
Herald added subscribers: cfe-commits, dkrupp, rnkovacs.
ClassTemplateSpecialization is put in the wrong DeclContex if implicitly
instantiated. This patch fixes it.
Repository:
rC Clang
timcorringham updated this revision to Diff 147460.
timcorringham added a comment.
[AMDGPU] Add interpolation builtins
Updated LIT test so that it only tests for the existence of the builtins
by checking the IR.
Repository:
rC Clang
https://reviews.llvm.org/D46871
Files:
Author: martong
Date: Fri May 18 02:08:47 2018
New Revision: 332699
URL: http://llvm.org/viewvc/llvm-project?rev=332699=rev
Log:
Do not try to remove invisible Decls from DeclContext
Modified:
cfe/trunk/lib/AST/DeclBase.cpp
cfe/trunk/unittests/AST/ASTImporterTest.cpp
Modified:
dberris updated this revision to Diff 147451.
dberris retitled this revision from "[XRay][clang+compiler-rt] Make XRay depend
on a C++ standard lib" to "[XRay][compiler-rt] Limit reliance on C++ ABI
features".
dberris edited the summary of this revision.
dberris added a comment.
Retitle, and
dberris updated this revision to Diff 147453.
dberris added a comment.
- fixup: revert unnecessary change to clang
https://reviews.llvm.org/D46998
Files:
compiler-rt/lib/xray/xray_basic_logging.cc
compiler-rt/test/xray/TestCases/Posix/c-test.cc
Index:
martong created this revision.
martong added reviewers: a.sidorin, xazax.hun, r.stahl.
Herald added subscribers: cfe-commits, dkrupp, rnkovacs.
Currently we do not import the implicit CXXRecordDecl of a
ClassTemplateSpecializationDecl. This patch fixes it.
Repository:
rC Clang
arsenm added inline comments.
Comment at: include/clang/Basic/BuiltinsAMDGPU.def:103-107
+BUILTIN(__builtin_amdgcn_interp_p1_f16, "ffUiUibUi", "nc")
+BUILTIN(__builtin_amdgcn_interp_p2_f16, "hffUiUibUi", "nc")
+BUILTIN(__builtin_amdgcn_interp_p1, "ffUiUiUi", "nc")
This revision was automatically updated to reflect the committed changes.
Closed by commit rC332704: This patch aims to match the changes introduced
(authored by aivchenk, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D46881?vs=147292=147476#toc
Repository:
rC Clang
ilya-biryukov added a comment.
In https://reviews.llvm.org/D44954#1103664, @malaperle wrote:
> It's probably better to consider this in a future patch. Maybe something like
> the first suggestion: vector::push_back and match both. Otherwise, I would
> think it might be a bit too verbose to
martong closed this revision.
martong added a comment.
Closed by commit: https://reviews.llvm.org/rL332699
Repository:
rC Clang
https://reviews.llvm.org/D46835
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
Author: aivchenk
Date: Fri May 18 04:56:21 2018
New Revision: 332704
URL: http://llvm.org/viewvc/llvm-project?rev=332704=rev
Log:
This patch aims to match the changes introduced
in gcc by https://gcc.gnu.org/ml/gcc-cvs/2018-04/msg00534.html.
The -mibt feature flag is being removed, and the
Author: ioeric
Date: Fri May 18 02:25:36 2018
New Revision: 332701
URL: http://llvm.org/viewvc/llvm-project?rev=332701=rev
Log:
Re-enable a clang-move test on windows.
This was fixed by r332612.
Modified:
clang-tools-extra/trunk/test/clang-move/move-class.cpp
Modified:
Author: ericwf
Date: Fri May 18 20:33:56 2018
New Revision: 332800
URL: http://llvm.org/viewvc/llvm-project?rev=332800=rev
Log:
Adjust and fix failing CXX tests after r332799
Modified:
cfe/trunk/test/CXX/class/class.union/p1.cpp
cfe/trunk/test/CXX/drs/dr5xx.cpp
Modified:
jfb added a comment.
In https://reviews.llvm.org/D47096#1105455, @rjmccall wrote:
> `children()` is actually defined at the `Stmt` level, and if you look at how
> it's implemented on e.g. `IfStmt`, you can see that it visits all of the
> child `Stmt`s, including the if-condition. So it should
jfb updated this revision to Diff 147648.
jfb added a comment.
- move test
Repository:
rC Clang
https://reviews.llvm.org/D47096
Files:
lib/CodeGen/CGDecl.cpp
test/CodeGenCXX/block-capture.cpp
Index: test/CodeGenCXX/block-capture.cpp
rjmccall accepted this revision.
rjmccall added a comment.
This revision is now accepted and ready to land.
LGTM.
Repository:
rC Clang
https://reviews.llvm.org/D47096
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
rjmccall added a comment.
Maybe there should just be a method that makes a primitive alloca without the
casting, and then you can call that in CreateTempAlloca.
https://reviews.llvm.org/D47099
___
cfe-commits mailing list
jfb added a comment.
In https://reviews.llvm.org/D47096#1105492, @rjmccall wrote:
> Test case should go in test/CodeGenCXX. Also, there already is a
> `blocks.cpp` there.
I moved it, but didn't merge with the existing block.cpp because it just checks
for not crashing. I'd rather make sure
rjmccall added a comment.
Test case should go in test/CodeGenCXX. Also, there already is a `blocks.cpp`
there.
Repository:
rC Clang
https://reviews.llvm.org/D47096
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
jfb updated this revision to Diff 147647.
jfb added a comment.
- Follow John's suggestion.
Repository:
rC Clang
https://reviews.llvm.org/D47096
Files:
lib/CodeGen/CGDecl.cpp
test/CodeGen/block-capture.cpp
Index: test/CodeGen/block-capture.cpp
jfb closed this revision.
jfb added a comment.
r332801
Repository:
rC Clang
https://reviews.llvm.org/D47096
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Author: jfb
Date: Fri May 18 21:21:26 2018
New Revision: 332801
URL: http://llvm.org/viewvc/llvm-project?rev=332801=rev
Log:
CodeGen: block capture shouldn't ICE
When a lambda capture captures a __block in the same statement, the compiler
asserts out because isCapturedBy assumes that an Expr
EricWF created this revision.
EricWF added a reviewer: rsmith.
This patch adds the newly added `%sub` diagnostic modifier to cleanup
repetition in the overload candidate diagnostics.
I think this should be good to go.
@rsmith: Some of the notes now emit `function template` where they only said
Szelethus marked 28 inline comments as done.
Szelethus added inline comments.
Comment at: lib/StaticAnalyzer/Checkers/UninitializedObjectChecker.cpp:181-182
+/// Returns whether FD can be (transitively) dereferenced to a void pointer
type
+/// (void*, void**, ...). The type of
Author: ioeric
Date: Fri May 18 06:22:49 2018
New Revision: 332717
URL: http://llvm.org/viewvc/llvm-project?rev=332717=rev
Log:
[VFS] Implement getRealPath for OverlayFileSystem.
Reviewers: bkramer
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D47060
Modified:
zinovy.nis marked an inline comment as done.
zinovy.nis added a comment.
Alexander, can you please have a look at the latest patch? Thanks.
https://reviews.llvm.org/D45927
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
tzik created this revision.
Herald added a subscriber: cfe-commits.
The previous implementation misses an opportunity to apply NRVO (Named Return
Value
Optimization) below. That discourages user to write early return code.
--
This revision was automatically updated to reflect the committed changes.
ioeric marked an inline comment as done.
Closed by commit rL332720: Move #include manipulation code to new
lib/Tooling/Inclusions. (authored by ioeric, committed by ).
Herald added a subscriber: llvm-commits.
Changed prior
martong created this revision.
martong added reviewers: a.sidorin, r.stahl, xazax.hun.
Herald added subscribers: cfe-commits, dkrupp, rnkovacs.
There is a test which passes since https://reviews.llvm.org/D32947, but it was
forgotten to be enabled.
This patch enables that disabled test.
Author: ioeric
Date: Fri May 18 07:16:37 2018
New Revision: 332720
URL: http://llvm.org/viewvc/llvm-project?rev=332720=rev
Log:
Move #include manipulation code to new lib/Tooling/Inclusions.
Summary:
clangToolingCore is linked into almost everything (incl. clang), but
not few tools need #include
malaperle added a comment.
In https://reviews.llvm.org/D44954#1104178, @ilya-biryukov wrote:
> In https://reviews.llvm.org/D44954#1103664, @malaperle wrote:
>
> > It's probably better to consider this in a future patch. Maybe something
> > like the first suggestion: vector::push_back and match
Author: aaronballman
Date: Fri May 18 07:53:32 2018
New Revision: 332723
URL: http://llvm.org/viewvc/llvm-project?rev=332723=rev
Log:
Silence more truncation warnings; NFC.
Modified:
clang-tools-extra/trunk/unittests/clangd/QualityTests.cpp
Modified:
martong accepted this revision.
martong added a comment.
This revision is now accepted and ready to land.
Herald added a subscriber: rnkovacs.
Ok, thanks for the explanation. Now it looks good to me.
https://reviews.llvm.org/D46940
___
cfe-commits
This revision was automatically updated to reflect the committed changes.
Closed by commit rC332728: [ASTImporter] Enable disabled but passing test
(authored by martong, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D47069?vs=147506=147524#toc
Repository:
rC Clang
ioeric created this revision.
ioeric added a reviewer: bkramer.
Herald added subscribers: cfe-commits, klimek.
... to support purely VFS-based tools.
Repository:
rC Clang
https://reviews.llvm.org/D47074
Files:
include/clang/Tooling/Tooling.h
lib/Tooling/Tooling.cpp
Index:
Author: ioeric
Date: Fri May 18 09:29:42 2018
New Revision: 332734
URL: http://llvm.org/viewvc/llvm-project?rev=332734=rev
Log:
Fix unused variable warning in r332724
Modified:
cfe/trunk/lib/Driver/ToolChains/CommonArgs.cpp
Modified: cfe/trunk/lib/Driver/ToolChains/CommonArgs.cpp
URL:
Author: benhamilton
Date: Fri May 18 08:27:02 2018
New Revision: 332727
URL: http://llvm.org/viewvc/llvm-project?rev=332727=rev
Log:
[clang-format/ObjC] Correctly annotate single-component ObjC method invocations
Summary:
Previously, clang-format's parser would fail to annotate the
selector in a
Author: martong
Date: Fri May 18 08:46:18 2018
New Revision: 332728
URL: http://llvm.org/viewvc/llvm-project?rev=332728=rev
Log:
[ASTImporter] Enable disabled but passing test
Summary:
There is a test which passes since D32947, but it was forgotten to be enabled.
This patch enables that disabled
a.sidorin accepted this revision.
a.sidorin added a comment.
This revision is now accepted and ready to land.
Hi Gabor! I have a question.
Comment at: lib/AST/ASTImporter.cpp:4305
+// Add to the DC only if it was an explicit specialization/instantiation.
+if
a.sidorin requested changes to this revision.
a.sidorin added a comment.
This revision now requires changes to proceed.
(Sorry, accepted accidentially).
Repository:
rC Clang
https://reviews.llvm.org/D47058
___
cfe-commits mailing list
Hi Eric,
I think there might be a cyclic dependency issue here, possibly one that's only
visible with LLVM_ENABLE_MODULES=On. I see:
While building module 'Clang_Tooling' imported from
/Users/vsk/src/llvm.org-master/llvm/tools/clang/lib/Tooling/Execution.cpp:10:
Hi Vedant,
It seems that your build was not using cmake files in the source tree?
lib/Tooling/Inclusions/
is a (new) standalone library (clangToolingInclusions, similar to
clangToolingCore). You might need update your build to reflect this change.
Let me know if you have any further question.
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/D47069
___
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.
lg
Repository:
rC Clang
https://reviews.llvm.org/D47074
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
Author: ioeric
Date: Fri May 18 09:06:19 2018
New Revision: 332731
URL: http://llvm.org/viewvc/llvm-project?rev=332731=rev
Log:
[Tooling] Add an overload of runToolOnCodeWithArgs that takes VFS
Summary: ... to support purely VFS-based tools.
Reviewers: bkramer
Subscribers: klimek, cfe-commits
This revision was automatically updated to reflect the committed changes.
Closed by commit rC332731: [Tooling] Add an overload of runToolOnCodeWithArgs
that takes VFS (authored by ioeric, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D47074?vs=147526=147529#toc
Repository:
Author: ioeric
Date: Fri May 18 09:08:18 2018
New Revision: 332732
URL: http://llvm.org/viewvc/llvm-project?rev=332732=rev
Log:
Trying to fix clang-move tests on windows build bot broken by r332717
http://lab.llvm.org:8011/builders/clang-x64-ninja-win7/builds/10702
Modified:
ormris added a comment.
That could work. Is the implementation similar?
Repository:
rC Clang
https://reviews.llvm.org/D47044
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
leonardchan updated this revision to Diff 147541.
leonardchan added a comment.
Updated formatting
Repository:
rC Clang
https://reviews.llvm.org/D46911
Files:
include/clang/AST/ASTContext.h
include/clang/AST/BuiltinTypes.def
include/clang/Basic/DiagnosticSemaKinds.td
benhamilton added inline comments.
Comment at: lib/Format/TokenAnnotator.cpp:510
+CurrentToken->Previous->Type = TT_SelectorName;
+ }
// determineStarAmpUsage() thinks that '*' '[' is allocating an
jolesiak wrote:
> I'd remove
benhamilton updated this revision to Diff 147516.
benhamilton marked an inline comment as done.
benhamilton added a comment.
Style
Repository:
rC Clang
https://reviews.llvm.org/D47028
Files:
lib/Format/TokenAnnotator.cpp
unittests/Format/FormatTestObjC.cpp
Index:
This revision was automatically updated to reflect the committed changes.
Closed by commit rC332727: [clang-format/ObjC] Correctly annotate
single-component ObjC method invocations (authored by benhamilton, committed by
).
Changed prior to commit:
a.sidorin accepted this revision.
a.sidorin added a comment.
LGTM. Aaron, could you please confirm that AST changes are fine?
Comment at: include/clang/AST/ASTContext.h:638
+ReleaseParentMapEntries();
+PointerParents = nullptr;
+ }
I'd prefer to call
QF5690 added a comment.
It's been a couple of months now, @rjmccall any ETA's?
Repository:
rC Clang
https://reviews.llvm.org/D44539
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
ioeric added a comment.
Should we also change the behavior in dynamic index?
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D47065
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
aaron.ballman added inline comments.
Comment at: clang-tidy/utils/ExprMutationAnalyzer.cpp:21-25
+ for (const auto *Init : Node.capture_inits()) {
+if (Init == E)
+ return true;
+ }
+ return false;
This can be replaced with `return
ioeric updated this revision to Diff 147487.
ioeric added a comment.
Minor cleanup
Repository:
rC Clang
https://reviews.llvm.org/D47060
Files:
include/clang/Basic/VirtualFileSystem.h
lib/Basic/VirtualFileSystem.cpp
unittests/Basic/VirtualFileSystemTest.cpp
Index:
yaxunl added a comment.
In https://reviews.llvm.org/D46472#1103577, @t-tye wrote:
> LGTM except for minor suggestions.
Thanks. Will make changes when committing.
https://reviews.llvm.org/D46472
___
cfe-commits mailing list
ilya-biryukov added a comment.
Another alternative that I've considered was evicting the ASTs from memory
after a certain period of time, e.g. after 30 seconds of inactivity for some
file. This might be simpler and also cover the use-case of speeding up multiple
code navigation requests
ilya-biryukov created this revision.
ilya-biryukov added reviewers: ioeric, sammccall.
Herald added subscribers: jkorous, MaskRay, klimek.
Now that the clients who relied on stats for files from preamble are
gone.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D47066
Files:
yaxunl added a comment.
Hi Artem,
I've addressed your comments. Any further changes are needed? Thanks.
https://reviews.llvm.org/D45212
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
courbet added inline comments.
Comment at: clang-tidy/cppcoreguidelines/NarrowingConversionsCheck.cpp:35
+ hasSourceExpression(IsFloatExpr),
+ unless(hasParent(castExpr(
+
Author: yaxunl
Date: Fri May 18 08:07:56 2018
New Revision: 332724
URL: http://llvm.org/viewvc/llvm-project?rev=332724=rev
Log:
[HIP] Support offloading by linker script
To support linking device code in different source files, it is necessary to
embed fat binary at host linking stage.
This
This revision was automatically updated to reflect the committed changes.
Closed by commit rL332724: [HIP] Support offloading by linker script (authored
by yaxunl, committed by ).
Herald added a subscriber: llvm-commits.
Changed prior to commit:
bkramer accepted this revision.
bkramer added a comment.
This revision is now accepted and ready to land.
lg
Comment at: lib/Basic/VirtualFileSystem.cpp:387
+ SmallVectorImpl ) const {
+ // Not using overlays_begin/end because this method is
Szelethus updated this revision to Diff 147485.
Szelethus added a comment.
In this diff, I preferred placing `TODO`s in places where the logic of the
checker would have changed too much. While I didn't have a strict rule for this
in mind, I tried changing as little as possible in order to
ilya-biryukov created this revision.
ilya-biryukov added reviewers: ioeric, sammccall.
Herald added subscribers: jkorous, MaskRay, klimek.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D47065
Files:
clangd/global-symbol-builder/GlobalSymbolBuilderMain.cpp
Index:
Author: ioeric
Date: Fri May 18 07:17:36 2018
New Revision: 332721
URL: http://llvm.org/viewvc/llvm-project?rev=332721=rev
Log:
[clangd] Adapt file migration in r332720
Modified:
clang-tools-extra/trunk/clangd/CMakeLists.txt
clang-tools-extra/trunk/clangd/Headers.h
Modified:
courbet added a comment.
Thanks.
Comment at: clang-tidy/cppcoreguidelines/NarrowingConversionsCheck.cpp:35
+ hasSourceExpression(IsFloatExpr),
+ unless(hasParent(castExpr(
+
courbet updated this revision to Diff 147508.
courbet marked 2 inline comments as done.
courbet added a comment.
- More explicit documentation.
- Do not trigger in template and macro contexts.
- More tests.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D38455
Files:
malaperle added subscribers: arphaman, malaperle.
malaperle added a comment.
In https://reviews.llvm.org/D47063#1104417, @ilya-biryukov wrote:
> Maybe we can even store enough information to not need the AST for navigation
> at all and build it only for features like refactorings.
>
Hahnfeld created this revision.
Hahnfeld added reviewers: tra, jlebar.
Herald added a subscriber: cfe-commits.
Revision https://reviews.llvm.org/rC329829 added the architecture to
"target-features". This
prevents inlining of previously generated bitcode because the
feature sets don't match. Thus
ioeric created this revision.
ioeric added a reviewer: bkramer.
Herald added a subscriber: cfe-commits.
Repository:
rC Clang
https://reviews.llvm.org/D47060
Files:
include/clang/Basic/VirtualFileSystem.h
lib/Basic/VirtualFileSystem.cpp
unittests/Basic/VirtualFileSystemTest.cpp
Index:
aaron.ballman added inline comments.
Comment at: clang-tidy/cppcoreguidelines/NarrowingConversionsCheck.cpp:35
+ hasSourceExpression(IsFloatExpr),
+ unless(hasParent(castExpr(
+
This revision was automatically updated to reflect the committed changes.
Closed by commit rL332717: [VFS] Implement getRealPath for OverlayFileSystem.
(authored by ioeric, committed by ).
Herald added a subscriber: llvm-commits.
Repository:
rL LLVM
https://reviews.llvm.org/D47060
Files:
I think this code is probably dead since the stem is "ld.lld" for lld, not
"lld".
On Sat, Feb 11, 2017 at 7:22 PM, Davide Italiano via cfe-commits <
cfe-commits@lists.llvm.org> wrote:
> On Sat, Feb 11, 2017 at 4:19 PM, Rui Ueyama wrote:
> > On Sat, Feb 11, 2017 at 3:44 PM,
ioeric created this revision.
ioeric added a reviewer: ilya-biryukov.
Herald added subscribers: cfe-commits, mgorny, klimek.
clangToolingCore is linked into almost everything (incl. clang), but
not few tools need #include manipulation at this point. So pull this into a
separate library in
ilya-biryukov accepted this revision.
ilya-biryukov added a comment.
This revision is now accepted and ready to land.
LGTM with a minor naming suggestion.
Comment at: include/clang/Format/Format.h:20
#include "clang/Tooling/Core/Replacement.h"
+#include
aaron.ballman accepted this revision.
aaron.ballman added a comment.
This revision is now accepted and ready to land.
I think this generally LGTM. You should wait a bit to see if @alexfh has any
other concerns.
Comment at:
courbet added a comment.
Great, thanks for the review !
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D38455
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
jolesiak accepted this revision.
jolesiak added inline comments.
This revision is now accepted and ready to land.
Comment at: lib/Format/TokenAnnotator.cpp:510
+CurrentToken->Previous->Type = TT_SelectorName;
+ }
// determineStarAmpUsage() thinks
martong added inline comments.
Comment at: lib/AST/ASTImporter.cpp:6776
+ // been invalidated to avoid repeatedly calling this.
+ ToContext.invalidateParents();
+
Can an `Expr` has a parent too? If yes, why not invalidate the parents in
`Import(Expr*)` ?
I am
ioeric updated this revision to Diff 147488.
ioeric added a comment.
Fix test...
Repository:
rC Clang
https://reviews.llvm.org/D47060
Files:
include/clang/Basic/VirtualFileSystem.h
lib/Basic/VirtualFileSystem.cpp
unittests/Basic/VirtualFileSystemTest.cpp
Index:
ioeric updated this revision to Diff 147491.
ioeric marked an inline comment as done.
ioeric added a comment.
- Add and use const_iterator.
Repository:
rC Clang
https://reviews.llvm.org/D47060
Files:
include/clang/Basic/VirtualFileSystem.h
lib/Basic/VirtualFileSystem.cpp
ilya-biryukov created this revision.
ilya-biryukov added a reviewer: sammccall.
Herald added subscribers: jkorous, MaskRay, ioeric, javed.absar, klimek.
After this commit, clangd will only keep the last 3 accessed ASTs in
memory. Preambles for each of the opened files are still kept in
memory to
ioeric marked an inline comment as done.
ioeric added inline comments.
Comment at: include/clang/Format/Format.h:20
#include "clang/Tooling/Core/Replacement.h"
+#include "clang/Tooling/Inclusions/IncludeStyle.h"
#include "llvm/ADT/ArrayRef.h"
ilya-biryukov
r.stahl added inline comments.
Comment at: lib/AST/ASTImporter.cpp:6776
+ // been invalidated to avoid repeatedly calling this.
+ ToContext.invalidateParents();
+
martong wrote:
> Can an `Expr` has a parent too? If yes, why not invalidate the parents in
>
Author: aaronballman
Date: Fri May 18 06:18:41 2018
New Revision: 332716
URL: http://llvm.org/viewvc/llvm-project?rev=332716=rev
Log:
Silence a truncation warning; NFC.
Modified:
clang-tools-extra/trunk/clangd/Quality.cpp
Modified: clang-tools-extra/trunk/clangd/Quality.cpp
URL:
aaron.ballman added inline comments.
Comment at: clang-tidy/cppcoreguidelines/NarrowingConversionsCheck.cpp:35
+ hasSourceExpression(IsFloatExpr),
+ unless(hasParent(castExpr(
+
I haven't looked in detail here, but in general: Don't split an
implementation and its headers into different notional libraries, as that
breaks modular code generation (an implementation and its headers usually
have circular dependencies - inline functions that call non-inline
functions, and the
EricWF accepted this revision.
EricWF added inline comments.
This revision is now accepted and ready to land.
Comment at: include/array:75
+ template
+array(T, U...) -> array;
Don't we normally comment `// C++17` or similar for new
Author: ericwf
Date: Fri May 18 13:42:53 2018
New Revision: 332764
URL: http://llvm.org/viewvc/llvm-project?rev=332764=rev
Log:
private_typeinfo: propagate static flags in vmi search_above_dst method
This adds the test which was mistakenly not committed in r332763.
Patch by Ryan Prichard
aaron.ballman added a reviewer: rsmith.
aaron.ballman added a comment.
Adding Richard as he has more background in this area. In general, I think it's
okay - if we invalidate too often, we do lose some performance, but the
correctness should still be there. I'll let Richard provide the final
EricWF updated this revision to Diff 147581.
EricWF marked an inline comment as done.
EricWF added a comment.
- Add error if a substitution and a diagnostic share the same name.
Any final comments on this?
https://reviews.llvm.org/D46740
Files:
docs/InternalsManual.rst
EricWF marked 2 inline comments as done.
EricWF added inline comments.
Comment at: utils/TableGen/ClangDiagnosticsEmitter.cpp:514
+ std::vector Diags = Records.getAllDerivedDefinitions("Diagnostic");
+ llvm::for_each(Diags, [&](Record *R) { substituteDiagText(R, SubsMap); });
Hahnfeld added a comment.
I think that's intended because the generated code might use instructions based
on that feature. If we want to ignore that, we could override
`TargetTransformInfo::areInlineCompatible` for NVPTX to only compare
`target-cpu`
Repository:
rC Clang
Thanks a lot for looking into this Bruno! The fix looks promising; I'll
give it a try next week :D
On Fri, May 18, 2018 at 10:33 PM David Blaikie via cfe-commits <
cfe-commits@lists.llvm.org> wrote:
> I haven't looked in detail here, but in general: Don't split an
> implementation and its
Hi Richard-
Thanks for the feedback. I’m copying the author of this patch on this email
for further discussion if you care to.
We’ll have her take another look at it. Thanks for the revert.
(https://github.com/llvm-mirror/clang/commit/746b78de7812bc785fbb5207b788348040b23fa7).
-Erich
From:
Author: ericwf
Date: Fri May 18 13:39:57 2018
New Revision: 332763
URL: http://llvm.org/viewvc/llvm-project?rev=332763=rev
Log:
private_typeinfo: propagate static flags in vmi search_above_dst method
Patch by Ryan Prichard
Propagate the found_our_static_ptr and found_any_static_type flags from
1 - 100 of 199 matches
Mail list logo