This revision was automatically updated to reflect the committed changes.
Closed by commit rL343179: clang-format: [JS] conditional types. (authored by
mprobst, committed by ).
Herald added a subscriber: llvm-commits.
Repository:
rL LLVM
https://reviews.llvm.org/D52536
Files:
cfe/trunk/lib/
Author: mprobst
Date: Wed Sep 26 23:48:13 2018
New Revision: 343179
URL: http://llvm.org/viewvc/llvm-project?rev=343179&view=rev
Log:
clang-format: [JS] conditional types.
Summary:
This change adds some rudimentary support for conditional types.
Specifically it avoids breaking before `extends` an
mprobst updated this revision to Diff 167239.
mprobst added a comment.
- comment in test
Repository:
rC Clang
https://reviews.llvm.org/D52536
Files:
lib/Format/FormatToken.h
lib/Format/TokenAnnotator.cpp
unittests/Format/FormatTestJS.cpp
Index: unittests/Format/FormatTestJS.cpp
=
This revision was automatically updated to reflect the committed changes.
Closed by commit rL343169: [driver][mips] Adjust target triple accordingly to
provided ABI name (authored by atanasyan, committed by ).
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llv
Author: atanasyan
Date: Wed Sep 26 22:04:50 2018
New Revision: 343169
URL: http://llvm.org/viewvc/llvm-project?rev=343169&view=rev
Log:
[driver][mips] Adjust target triple accordingly to provided ABI name
Explicitly selected MIPS ABI using the `-mabi` option implies
corresponding target triple. F
atanasyan added a comment.
Thanks for review.
Repository:
rC Clang
https://reviews.llvm.org/D52290
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Author: maskray
Date: Wed Sep 26 21:23:24 2018
New Revision: 343168
URL: http://llvm.org/viewvc/llvm-project?rev=343168&view=rev
Log:
[clang-tidy] Add dependency to clangAnalysis after rC343160
Modified:
clang-tools-extra/trunk/clang-tidy/mpi/CMakeLists.txt
Modified: clang-tools-extra/trunk/
Author: maskray
Date: Wed Sep 26 21:19:29 2018
New Revision: 343166
URL: http://llvm.org/viewvc/llvm-project?rev=343166&view=rev
Log:
llvm::sort(C.begin(), C.end()) -> llvm::sort(C)
The convenience wrapper in STLExtras is available since rL342102.
Modified:
clang-tools-extra/trunk/clang-tidy
kent08ian added a comment.
Herald added a subscriber: dexonsmith.
In https://reviews.llvm.org/D10833#1109371, @kent08ian wrote:
> In https://reviews.llvm.org/D10833#970906, @milianw wrote:
>
> > still looks good to me. can someone else please review and commit this?
>
>
> Ping
Any updates on th
Higuoxing added a comment.
Ping. Now, this patch could give fix-it note on parentheses in macros.
https://reviews.llvm.org/D47687
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
This revision was automatically updated to reflect the committed changes.
Closed by commit rC343160: [analyzer] [NFC] Move the code for dumping the
program point to ProgramPoint (authored by george.karpenkov, committed by ).
Herald added a subscriber: cfe-commits.
Changed prior to commit:
https
This revision was automatically updated to reflect the committed changes.
Closed by commit rL343159: [analyzer] [NFC] Heavy refactoring of
trackNullOrUndefValue (authored by george.karpenkov, committed by ).
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.
Author: george.karpenkov
Date: Wed Sep 26 18:46:18 2018
New Revision: 343160
URL: http://llvm.org/viewvc/llvm-project?rev=343160&view=rev
Log:
[analyzer] [NFC] Move the code for dumping the program point to ProgramPoint
So we can dump them outside of viewing the exploded grpah.
Differential Revi
This revision was automatically updated to reflect the committed changes.
Closed by commit rC343159: [analyzer] [NFC] Heavy refactoring of
trackNullOrUndefValue (authored by george.karpenkov, committed by ).
Herald added a subscriber: cfe-commits.
Changed prior to commit:
https://reviews.llvm.o
Author: george.karpenkov
Date: Wed Sep 26 18:45:57 2018
New Revision: 343159
URL: http://llvm.org/viewvc/llvm-project?rev=343159&view=rev
Log:
[analyzer] [NFC] Heavy refactoring of trackNullOrUndefValue
Differential Revision: https://reviews.llvm.org/D52519
Modified:
cfe/trunk/include/clang
craig.topper created this revision.
craig.topper added reviewers: spatel, RKSimon.
These intrinsics exist in icc. They can be found on the Intel Intrinsics Guide
website.
All the backend support is in place to pattern match a load+bswap or a
bswap+store pattern to the MOVBE instructions. So we
This revision was automatically updated to reflect the committed changes.
Closed by commit rC343158: [analyzer] [testing] Pass through an extra argument
for specifying extra… (authored by george.karpenkov, committed by ).
Herald added a subscriber: cfe-commits.
Changed prior to commit:
https://
Author: george.karpenkov
Date: Wed Sep 26 18:10:59 2018
New Revision: 343158
URL: http://llvm.org/viewvc/llvm-project?rev=343158&view=rev
Log:
[analyzer] [testing] Pass through an extra argument for specifying extra
analyzer options
Differential Revision: https://reviews.llvm.org/D52585
Modifie
owenpan updated this revision to Diff 167225.
owenpan added a comment.
Updated ClangFormatStyleOptions.rst.
Repository:
rC Clang
https://reviews.llvm.org/D52527
Files:
docs/ClangFormatStyleOptions.rst
include/clang/Format/Format.h
lib/Format/Format.cpp
lib/Format/UnwrappedLineParser.
vitalybuka added inline comments.
Comment at: lib/CodeGen/CGExprScalar.cpp:305
enum ImplicitConversionCheckKind : unsigned char {
-ICCK_IntegerTruncation = 0,
+ICCK_IntegerTruncation = 0, // Legacy, no longer used.
+ICCK_UnsignedIntegerTruncation = 1,
-
smeenai created this revision.
smeenai added reviewers: compnerd, rjmccall, theraven, DHowett-MSFT.
As discussed in https://reviews.llvm.org/D50144, we want Obj-C classes
to have the same mangling as C++ structs, to support headers like the
following:
#ifdef __OBJC__
@class I;
#else
struc
aaron.ballman added a comment.
This generally looks sensible to me.
Comment at: lib/Analysis/ThreadSafety.cpp:1970
+ // There can be default arguments, so we stop when one iterator is at end().
+ for (auto Arg = ArgBegin; Param != Params.end() && Arg != ArgEnd;
+ ++Para
Author: maskray
Date: Wed Sep 26 16:47:00 2018
New Revision: 343152
URL: http://llvm.org/viewvc/llvm-project?rev=343152&view=rev
Log:
Remove trailing space in rC343150
Modified:
cfe/trunk/include/clang/Sema/Lookup.h
Modified: cfe/trunk/include/clang/Sema/Lookup.h
URL:
http://llvm.org/viewvc
Author: vitalybuka
Date: Wed Sep 26 15:58:53 2018
New Revision: 343150
URL: http://llvm.org/viewvc/llvm-project?rev=343150&view=rev
Log:
Init LookupResult::AmbiguityKind
We don't expect useful value there unless it's "ambiguous".
However we use read it for copying and moving, so we need either in
Author: hsiangkai
Date: Wed Sep 26 15:18:45 2018
New Revision: 343148
URL: http://llvm.org/viewvc/llvm-project?rev=343148&view=rev
Log:
[DebugInfo] Generate debug information for labels.
Generate DILabel metadata and call llvm.dbg.label after label
statement to associate the metadata with the lab
This revision was automatically updated to reflect the committed changes.
Closed by commit rL343147: llvm::sort(C.begin(), C.end(), ...) ->
llvm::sort(C, ...) (authored by MaskRay, committed by ).
Herald added a subscriber: llvm-commits.
Repository:
rL LLVM
https://reviews.llvm.org/D52576
Fil
Author: maskray
Date: Wed Sep 26 15:16:28 2018
New Revision: 343147
URL: http://llvm.org/viewvc/llvm-project?rev=343147&view=rev
Log:
llvm::sort(C.begin(), C.end(), ...) -> llvm::sort(C, ...)
Summary: The convenience wrapper in STLExtras is available since rL342102.
Reviewers: rsmith, #clang, db
MaskRay updated this revision to Diff 167206.
MaskRay added a comment.
Reflow nearby statements as rsmith@ requested:
git diff -U0 --no-color 'HEAD^' |
~/llvm/tools/clang/tools/clang-format/clang-format-diff.py -i -p1
Repository:
rC Clang
https://reviews.llvm.org/D52576
Files:
lib/AST/It
aaronpuchert added a comment.
See the bug for further discussion. I'm not sure if we want to have this, but
if the pattern is used more widely it might make sense. It blows up the code a
bit, although I hope that https://reviews.llvm.org/D51187 might reduce it again.
Repository:
rC Clang
ht
rsmith accepted this revision.
rsmith added a comment.
This revision is now accepted and ready to land.
Thanks for the cleanup! Maybe consider running `clang-format-diff` on this?
Comment at: lib/Sema/SemaOverload.cpp:10813-10814
- llvm::sort(Cands.begin(), Cands.end(),
+ l
aaronpuchert created this revision.
aaronpuchert added reviewers: aaron.ballman, delesley.
Herald added a subscriber: cfe-commits.
The pattern is problematic with C++ exceptions, and not as widespread as
scoped locks, but it's still used by some, for example Chromium.
We are a bit stricter here a
rnk accepted this revision.
rnk added a comment.
This revision is now accepted and ready to land.
Lgtm, thanks!
Repository:
rC Clang
https://reviews.llvm.org/D52290
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi
MaskRay created this revision.
MaskRay added a reviewer: rsmith.
Herald added subscribers: cfe-commits, kadircet, arphaman, mgrang.
The convenience wrapper in STLExtras is available since
https://reviews.llvm.org/rL342102.
Repository:
rC Clang
https://reviews.llvm.org/D52576
Files:
lib/AS
I put a patch up to fix this here: https://reviews.llvm.org/D52574
Please take these warnings more seriously next time. It's the
committer's responsibility to fix these warnings [1], and they often
identify legitimate issues in the patch.
Thanks,
Erik
[1]: https://llvm.org/docs/DeveloperPoli
erik.pilkington created this revision.
erik.pilkington added reviewers: xbolva00, kristina, asb.
Herald added subscribers: kadircet, jocewei, PkmX, dexonsmith, the_o,
brucehoult, MartinMosbeck, rogfer01, mgrang, edward-jones, zzheng, jrtc27,
ioeric, niosHD, sabuasal, apazos, simoncook, johnrusso,
atanasyan added inline comments.
Comment at: lib/Driver/Driver.cpp:492
+ .Case("64", Target.get64BitArchVariant())
+ .Default(Target);
+
rnk wrote:
> We should emit a diagnostic for invalid -mabi=values.
We already do that:
$ cl
rnk accepted this revision.
rnk added a comment.
This revision is now accepted and ready to land.
lgtm
Repository:
rC Clang
https://reviews.llvm.org/D52571
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mail
mstorsjo created this revision.
mstorsjo added reviewers: dmajor, mgrang, ssijaric, rnk, compnerd.
Herald added subscribers: chrib, kristof.beyls.
This fixes PR39090.
Repository:
rC Clang
https://reviews.llvm.org/D52571
Files:
lib/Sema/SemaChecking.cpp
test/SemaCXX/microsoft-varargs.cpp
Hahnfeld added inline comments.
Comment at: lib/Driver/ToolChains/Cuda.cpp:665
+// Add path to lib / lib64 folder.
+SmallString<256> DefaultLibPath =
ABataev wrote:
> You're changing the order of the lookup for the paths. Is this intended? If
> so, you
ABataev added inline comments.
Comment at: lib/Driver/ToolChains/Cuda.cpp:515
+ if (Arg *A = Args.getLastArg(options::OPT_libomptarget_nvptx_path_EQ))
+CmdArgs.push_back(Args.MakeArgString(Twine("-L") + A->getValue()));
+
`const Arg *A`
Co
mstorsjo added a comment.
Also, I notice that ubsan also is built for windows, but in the MSVC toolchain,
only asan (and libfuzzer) can be enabled, not ubsan. Is there something else
missing for ubsan, or what's the matter with that one?
Repository:
rC Clang
https://reviews.llvm.org/D52538
MaskRay added a comment.
In https://reviews.llvm.org/D50294#1245454, @emaste wrote:
> I'm using this change:
> https://github.com/emaste/freebsd/commit/1c3deab6d518feb1a7e88de5b342a139e4022a21
>
> In FreeBSD 12 and later we use Clang, lld, and ELF Tool Chain. (We still have
> gas and objdump fr
Hahnfeld added a comment.
Ping
Repository:
rC Clang
https://reviews.llvm.org/D51686
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
ABataev added inline comments.
Comment at: lib/CodeGen/CGOpenMPRuntime.cpp:9199
+ OpenMPDistScheduleClauseKind *ScheduleKind, llvm::Value *&Chunk) const {
+ return;
+}
Remove `return;`, it is not required
Comment at: lib/CodeGen/CGOpenMPR
gtbercea updated this revision to Diff 167172.
gtbercea edited the summary of this revision.
gtbercea added a comment.
Only change default schedule for distribute directive.
Repository:
rC Clang
https://reviews.llvm.org/D52434
Files:
lib/CodeGen/CGOpenMPRuntime.cpp
lib/CodeGen/CGOpenMPRu
lebedev.ri added inline comments.
Comment at: test/clang-tidy/misc-class-inherit-from-struct.cpp:13
+};
+
+class C
lebedev.ri wrote:
> Missing cases:
> * struct inheriting from struct
> * Different inheritance visibility:
> * You only check the default visibili
Author: rsmith
Date: Wed Sep 26 12:00:16 2018
New Revision: 343131
URL: http://llvm.org/viewvc/llvm-project?rev=343131&view=rev
Log:
P1008R1 Classes with user-declared constructors are never aggregates in
C++20.
Added:
cfe/trunk/test/SemaCXX/cxx2a-compat.cpp
cfe/trunk/test/SemaCXX/cxx2a-i
rnk added inline comments.
Comment at: lib/Driver/Driver.cpp:492
+ .Case("64", Target.get64BitArchVariant())
+ .Default(Target);
+
We should emit a diagnostic for invalid -mabi=values.
Repository:
rC Clang
https://reviews.llvm
janosimas added inline comments.
Comment at: clang-tidy/tool/clang-tidy-diff.py:123-130
if args.fix:
command.append('-fix')
if args.checks != '':
command.append('-checks=' + quote + args.checks + quote)
if args.quiet:
command.append('-quiet')
if args.bu
janosimas requested review of this revision.
janosimas added inline comments.
Comment at: clang-tidy/tool/clang-tidy-diff.py:123-130
if args.fix:
command.append('-fix')
if args.checks != '':
command.append('-checks=' + quote + args.checks + quote)
if args.quiet
Eugene.Zelenko added inline comments.
Comment at: docs/ReleaseNotes.rst:109
+- New :doc:`misc-class-inherit-from-struct
+ ` check.
Please use alphabetical order for new checks list.
Comment at: docs/clang-tidy/checks/misc-class-inherit-from-
george.karpenkov added a comment.
@jroelofs Thanks, but in general code owners would need to take a look as well.
@lebedev.ri The code looks great, thanks!
Repository:
rC Clang
https://reviews.llvm.org/D52530
___
cfe-commits mailing list
cfe-com
Sounds great, thanks!
On Wed, Sep 26, 2018 at 8:33 AM Hans Wennborg via Phabricator via
cfe-commits wrote:
> hans added inline comments.
>
>
>
> Comment at: include/clang/Driver/CLCompatOptions.td:94
> +def : CLFlag<"Gs">, HelpText<"Use stack probes (default)">,
> + Alias, Alia
This revision was automatically updated to reflect the committed changes.
Closed by commit rC343126: [X86] For lzcnt/tzcnt intrinsics use cttz/ctlz
intrinsics with zero_undef flag… (authored by ctopper, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D52392?vs=166606&id=167159
Author: ctopper
Date: Wed Sep 26 10:01:44 2018
New Revision: 343126
URL: http://llvm.org/viewvc/llvm-project?rev=343126&view=rev
Log:
[X86] For lzcnt/tzcnt intrinsics use cttz/ctlz intrinsics with zero_undef flag
set to false.
Previously we used a select and the zero_undef=true intrinsic. In -O2
krasimir accepted this revision.
krasimir added inline comments.
This revision is now accepted and ready to land.
Comment at: unittests/Format/FormatTestJS.cpp:2315
+ " never) extends((k: infer I) => void) ? I "
+ ": never;");
+}
--
aaron.ballman added a comment.
This strikes me as likely being a very chatty diagnostic. For instance, it will
trigger on harmless code that uses empty base class optimization (in addition
to other concerns pointed out by @lebedev.ri). It seems like the real concern
here is unintentional inform
aaron.ballman added inline comments.
Comment at: clang-tidy/bugprone/NotNullTerminatedResultCheck.cpp:1038
+
+ SmallString<128> NewAddNullTermExprStr;
+ NewAddNullTermExprStr = "\n";
JonasToth wrote:
> whisperity wrote:
> > aaron.ballman wrote:
> > > This shoul
aaron.ballman added inline comments.
Comment at: clang-tidy/modernize/ReplaceGenericFunctorCallCheck.cpp:70
+const auto *Paren = dyn_cast(MFunctor->getCallee());
+const auto *BinOp = dyn_cast(Paren->getSubExpr());
+
How do you know `Paren` won't be null?
ilya-biryukov added a comment.
A drive-by comment.
Would it be cleaner to pass this information from clang? Relying on completion
label seems shaky.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D52547
___
cfe-commits mailing list
modocache accepted this revision.
modocache added a comment.
This revision is now accepted and ready to land.
This is great, thanks! Sorry for letting it languish. I defer to @GorNishanov,
but I don't see why this couldn't go in now and if there're any edge cases I'm
missing we can address those
> The downside is probably that all symbols in yaml would have the same
origin, which is a bit redundant but doesn't seem to matter much.
All my comments boil down to this one, but the argument is not only
redundant - it does not make sense design-wise to store an origin in the
serialized static in
This revision was automatically updated to reflect the committed changes.
Closed by commit rCTE343117: [clangd] Fix bugs with incorrect memory estimate
report (authored by omtcyfz, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D52503?vs=167079&id=167143#toc
Repository:
rC
Author: omtcyfz
Date: Wed Sep 26 08:06:23 2018
New Revision: 343117
URL: http://llvm.org/viewvc/llvm-project?rev=343117&view=rev
Log:
[clangd] Fix bugs with incorrect memory estimate report
* With the current implementation, `sizeof(std::vector)` is added
twice to the `Dex` memory estimate which
jkorous created this revision.
jkorous added reviewers: sammccall, ilya-biryukov.
jkorous added a project: clang-tools-extra.
Herald added subscribers: cfe-commits, kadircet, arphaman, dexonsmith, MaskRay,
ioeric.
Created in order to check we agree on what are the requirements and would later
wr
This revision was automatically updated to reflect the committed changes.
Closed by commit rL343116: [docs] Update PostingList string representation
format (authored by omtcyfz, committed by ).
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.org/D52545?vs=
Author: omtcyfz
Date: Wed Sep 26 07:59:49 2018
New Revision: 343116
URL: http://llvm.org/viewvc/llvm-project?rev=343116&view=rev
Log:
[docs] Update PostingList string representation format
Because `PostingList` objects are compressed, it is now impossible to
see elements other than the current on
kbobyrev updated this revision to Diff 167138.
kbobyrev added a comment.
Simplify the documentation format.
https://reviews.llvm.org/D52545
Files:
clang-tools-extra/clangd/index/dex/Iterator.h
Index: clang-tools-extra/clangd/index/dex/Iterator.h
=
ioeric added inline comments.
Comment at: clang-tools-extra/clangd/index/dex/Iterator.h:97
/// ChildN is N-th iterator child. Raw iterators over PostingList are
- /// represented as "[ID1, ID2, ..., {IDN}, ... END]" where IDN is N-th
- /// PostingList entry and the element w
lebedev.ri added a comment.
Please upload patches with full context.
Please do follow coding style, clang-format your patches.
Would it make sense to not catch-all all the `class : struct`, but consider the
explicitly specified inheritance visibility?
Comment at: clang-tidy/m
ioeric added inline comments.
Comment at: clangd/index/Index.h:430
///
- /// The global scope is "", a top level scope is "foo::", etc.
+ /// The global scope is "", a top level scope is "foo::", etc. "*" is
+ /// wildcard.
sammccall wrote:
> I'm not a big
ioeric updated this revision to Diff 167135.
ioeric marked 14 inline comments as done.
ioeric added a comment.
- address review comments
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D52364
Files:
clangd/CodeComplete.cpp
clangd/CodeComplete.h
clangd/index/Index.h
clangd
DennisMelamed created this revision.
DennisMelamed added reviewers: alexfh, aaron.ballman, hokein, JonasToth.
Herald added subscribers: xazax.hun, mgorny.
[clang-tidy] Flag Classes Inheriting From Structs
Added a check which flags cases of a class inheriting from a struct, which can
cause uninte
This revision was automatically updated to reflect the committed changes.
Closed by commit rC343111: [ARM/AArch64][v8.5A] Add Armv8.5-A target (authored
by olista01, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D52491?vs=166908&id=167130#toc
Repository:
rC Clang
https:/
Author: olista01
Date: Wed Sep 26 07:20:29 2018
New Revision: 343111
URL: http://llvm.org/viewvc/llvm-project?rev=343111&view=rev
Log:
[ARM/AArch64][v8.5A] Add Armv8.5-A target
This patch allows targetting Armv8.5-A from Clang. Most of the
implementation is in TargetParser, so this is mostly just
ebevhan added inline comments.
Comment at: lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1119
+ case ISD::SSAT:
+// Target legalization checked here?
+Action = TargetLowering::Expand;
leonardchan wrote:
> ebevhan wrote:
> > leonardchan wrote:
> > > ebevhan wr
flx added a comment.
In https://reviews.llvm.org/D52360#1246472, @baloghadamsoftware wrote:
> In https://reviews.llvm.org/D52360#1246443, @danilaml wrote:
>
> > Would that also skip checks for something like `shared_ptr`?
>
>
> Yes, everything ending on `pointer`, `ptr`, `reference` or `ref`, fir
lebedev.ri added a comment.
In https://reviews.llvm.org/D52315#1245747, @dblaikie wrote:
> ...
I think this has been attempted to be superseded by
https://reviews.llvm.org/D52360, although that has the same basic issue.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D52315
lebedev.ri added a comment.
In https://reviews.llvm.org/D52360#1246474, @baloghadamsoftware wrote:
> In https://reviews.llvm.org/D52360#1246452, @lebedev.ri wrote:
>
> > I disagree, it **must** not have false-negatives by default.
>
>
> What kind of false-negatives could be caused by smart pointe
kbobyrev added inline comments.
Comment at: clang-tools-extra/clangd/index/dex/Dex.cpp:251
Bytes += InvertedIndex.getMemorySize();
- for (const auto &P : InvertedIndex)
-Bytes += P.second.bytes();
+ for (const auto &TokenToPostingList : InvertedIndex)
+Bytes += Token
sammccall added a comment.
As noted, this is really early stage, but would appreciate design feedback (I
think both of you have spent some time fighting VFS by now...)
Repository:
rC Clang
https://reviews.llvm.org/D52549
___
cfe-commits mailing
sammccall updated this revision to Diff 167126.
sammccall added a comment.
remove commented code
Repository:
rC Clang
https://reviews.llvm.org/D52549
Files:
include/clang/Basic/VirtualFileSystem.h
lib/Basic/AvoidStatsVFS.cpp
lib/Basic/CMakeLists.txt
lib/Basic/VirtualFileSystem.cpp
I
sammccall created this revision.
sammccall added reviewers: ioeric, ilya-biryukov.
Herald added subscribers: cfe-commits, jfb, mgorny.
This is intended to reduce the number of syscalls when building large
translation units that have long include paths.
This is a WIP for early feedback:
- obvious
lebedev.ri accepted this revision.
lebedev.ri added a comment.
This revision is now accepted and ready to land.
This looks good to me, but you probably want to wait for someone else to review
this, too.
https://reviews.llvm.org/D52421
___
cfe-commi
JonasToth added a comment.
Please wait for explicit approval from @alexfh
Am 26.09.2018 um 13:05 schrieb Stephen Kelly via Phabricator:
> steveire added a comment.
>
> Can I go ahead and merge this now?
>
> Repository:
>
> rCTE Clang Tools Extra
>
> https://reviews.llvm.org/D52334
Reposi
JonasToth added inline comments.
Comment at: clang-tidy/bugprone/NotNullTerminatedResultCheck.cpp:1038
+
+ SmallString<128> NewAddNullTermExprStr;
+ NewAddNullTermExprStr = "\n";
whisperity wrote:
> aaron.ballman wrote:
> > This should be done using a `Twine`.
ioeric added inline comments.
Comment at: clangd/ClangdUnit.cpp:339
+llvm::ErrorOr status(const Twine &Path) override {
+ auto I = StatCache.find(Path.str());
+ return (I != StatCache.end()) ? I->getValue() : FS->status(Path);
ilya-biryukov wrote:
>
ioeric updated this revision to Diff 167124.
ioeric marked 7 inline comments as done.
ioeric added a comment.
- address review comments
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D52419
Files:
clangd/CMakeLists.txt
clangd/ClangdServer.cpp
clangd/ClangdUnit.cpp
clangd
hans added a comment.
The static local stuff still makes me nervous. How much does Chromium break if
we just ignore the problem? And how does -fvisibility-inlines-hidden handle the
issue?
Also, Sema already has a check for static locals in C inline functions:
$ echo "inline void f() { static
kadircet created this revision.
kadircet added a reviewer: sammccall.
Herald added subscribers: cfe-commits, arphaman, jkorous, ioeric, ilya-biryukov.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D52547
Files:
clangd/CodeComplete.cpp
clangd/Protocol.h
unittests/clangd/Code
chrib added a reviewer: jroelofs.
chrib added a comment.
Hi Martin,
maybe just a NIT, use --sysroot= rather than just --sysroot for consistency
with other tests.
Otherwise looks good to me, thanks (adding Jonathan as I'm not sure I can
accept)
Repository:
rC Clang
https://reviews.llvm.org
This revision was automatically updated to reflect the committed changes.
Closed by commit rC343105: [analyzer] scan-build: if --status-bugs is passed,
don't forget about the exit… (authored by lebedevri, committed by ).
Repository:
rC Clang
https://reviews.llvm.org/D52530
Files:
tools/scan
lebedev.ri added a comment.
In https://reviews.llvm.org/D52530#1246459, @jroelofs wrote:
> LGTM
Thank you for the speedy review!
Repository:
rC Clang
https://reviews.llvm.org/D52530
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http:
Author: lebedevri
Date: Wed Sep 26 06:08:44 2018
New Revision: 343105
URL: http://llvm.org/viewvc/llvm-project?rev=343105&view=rev
Log:
[analyzer] scan-build: if --status-bugs is passed, don't forget about the exit
status of the actual build
Summary:
This has been bothering me for a while, but o
Szelethus added inline comments.
Comment at:
include/clang/StaticAnalyzer/Checkers/StackUsageMeasuringVisitor.h:102-111
+ bool hasEmptyFlaggedUsageStored(const Stmt *S) const {
+auto iter = StmtSubtreeUsages.find(S);
+return iter != StmtSubtreeUsages.end() &&
+
baloghadamsoftware added a comment.
In https://reviews.llvm.org/D52360#1246452, @lebedev.ri wrote:
> I disagree, it **must** not have false-negatives by default.
What kind of false-negatives could be caused by smart pointers or references?
Sane people do not name a type pointer or reference if
baloghadamsoftware added a comment.
In https://reviews.llvm.org/D52360#1246443, @danilaml wrote:
> Would that also skip checks for something like `shared_ptr`?
Yes, everything ending on `pointer`, `ptr`, `reference` or `ref`, first letter
case insensitive.
Repository:
rCTE Clang Tools Extr
kbobyrev created this revision.
kbobyrev added reviewers: ioeric, sammccall.
kbobyrev added a project: clang-tools-extra.
Herald added subscribers: kadircet, arphaman, jkorous.
Because `PostingList` objects are compressed, it is now impossible to see
elements other than the current one and the do
jroelofs accepted this revision.
jroelofs added a comment.
This revision is now accepted and ready to land.
LGTM
Repository:
rC Clang
https://reviews.llvm.org/D52530
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cg
hans added inline comments.
Comment at: include/clang/Driver/CLCompatOptions.td:94
+def : CLFlag<"Gs">, HelpText<"Use stack probes (default)">,
+ Alias, AliasArgs<["4096"]>;
def _SLASH_Gs : CLJoined<"Gs">,
thakis wrote:
> https://docs.microsoft.com/en-us/cpp/bu
1 - 100 of 156 matches
Mail list logo