erichkeane updated this revision to Diff 124769.
erichkeane added a comment.
Woops, missed an 'svn add' and lost the member ptr test. Back now!
https://reviews.llvm.org/D39347
Files:
include/clang/AST/ASTContext.h
include/clang/AST/Type.h
lib/AST/ASTContext.cpp
lib/AST/CXXABI.h
malaperle added inline comments.
Comment at: clangd/ClangdUnit.cpp:1173
+H.range = L.range;
+Ref = getDataBufferFromSourceRange(AST, SR, L);
+ }
malaperle wrote:
> malaperle wrote:
> > I get the same crash as I mentioned before if I hover on
erichkeane updated this revision to Diff 124765.
https://reviews.llvm.org/D39347
Files:
include/clang/AST/ASTContext.h
include/clang/AST/Type.h
lib/AST/ASTContext.cpp
lib/AST/CXXABI.h
lib/AST/ItaniumCXXABI.cpp
lib/AST/MicrosoftCXXABI.cpp
lib/AST/Type.cpp
lib/Sema/SemaExprCXX.cpp
erichkeane added inline comments.
Comment at: lib/AST/ASTContext.cpp:2213
+Field->isBitField()
+? Field->getBitWidthValue(Context)
+: Context.toBits(Context.getTypeSizeInChars(Field->getType()));
erichkeane wrote:
> rsmith wrote:
Author: alexfh
Date: Wed Nov 29 09:16:09 2017
New Revision: 319325
URL: http://llvm.org/viewvc/llvm-project?rev=319325=rev
Log:
[clang-tidy] make readability-simplify-bool-expr completely ignore macros
Modified:
clang-tools-extra/trunk/clang-tidy/readability/SimplifyBooleanExprCheck.cpp
aaron.ballman added inline comments.
Comment at: clang-tidy/fuchsia/MultipleInheritanceCheck.cpp:58
+ // Interfaces should have exclusively pure methods.
+ for (auto method : Node->methods()) {
+if (method->isUserProvided() && !method->isPure()) {
mcrosier added a comment.
In https://reviews.llvm.org/D40476#936700, @mcrosier wrote:
> In https://reviews.llvm.org/D40476#936372, @pirama wrote:
>
> > Thanks for the review. Now let's just hope the windows bots stay happy :)
>
>
> Actually, I just checked and it looks like falkor and saphira
Author: mcrosier
Date: Wed Nov 29 08:42:44 2017
New Revision: 319323
URL: http://llvm.org/viewvc/llvm-project?rev=319323=rev
Log:
[Driver] Turns out the GNU assembler does support falkor/saphira.
Modified:
cfe/trunk/lib/Driver/ToolChains/Gnu.cpp
cfe/trunk/test/Driver/as-mcpu.c
Modified:
aaron.ballman added inline comments.
Comment at: include/clang/Basic/DiagnosticSemaKinds.td:7922-7925
+def err_type_tag_out_of_range : Error<
+ "type tag index %0 is greater than the number of arguments specified">;
+def err_arg_tag_out_of_range : Error<
+ "argument tag index
> Two slaves remain off for now as they produce a lot of warnings and their
log files are way too big.
I think https://reviews.llvm.org/D40603 will fix this issue.
-Greg
On 28 November 2017 at 22:13, Galina Kistanova via llvm-dev <
llvm-...@lists.llvm.org> wrote:
> Hello everyone,
>
> LLVM
Author: ismail
Date: Wed Nov 29 07:18:02 2017
New Revision: 319322
URL: http://llvm.org/viewvc/llvm-project?rev=319322=rev
Log:
Fix function call to fix build
../tools/clang/lib/Driver/ToolChains/Cuda.cpp:80:18: error: reference to
non-static member function must be called; did you mean to call
gerazo added a comment.
Thanks George for the review. I will start working on the code right away. I've
tried to answer the simpler cases.
Comment at: tools/scan-build-py/libscanbuild/analyze.py:44
+CTU_FUNCTION_MAP_FILENAME = 'externalFnMap.txt'
+CTU_TEMP_FNMAP_FOLDER =
Author: jakehehrlich
Date: Tue Nov 28 16:54:20 2017
New Revision: 319269
URL: http://llvm.org/viewvc/llvm-project?rev=319269=rev
Log:
Reland "Fix vtable not receiving hidden visibility when using push(visibility)"
I had to reland this change in order to make the test work on windows
This change
jkorous-apple added inline comments.
Comment at: tools/libclang/CIndexer.cpp:108
+ // Write out the information about the invocation to it.
+ auto WriteStringKey = [&](StringRef Key, StringRef Value) {
+OS << R"(")" << Key << R"(":")";
Nit: Maybe capturing
klimek created this revision.
When we break a long line like:
Column limit: 21
|
// foo foo foo foo foo foo foo foo foo foo foo foo
The local decision when to allow protruding vs. breaking can lead to this
outcome (2 excess characters, 2 breaks):
// foo foo foo foo
xazax.hun added inline comments.
Comment at: lib/StaticAnalyzer/Checkers/UndefinedAssignmentChecker.cpp:64
+if (const UnaryOperator *U = dyn_cast(StoreE)) {
+ str = "The expression of the unary operator is an uninitialized value. "
+"The computed value will
Author: abataev
Date: Wed Nov 29 07:14:16 2017
New Revision: 319320
URL: http://llvm.org/viewvc/llvm-project?rev=319320=rev
Log:
[OPENMP] General improvement of handling of `teams distribute`
directive, NFC.
Some general improvements in support of `teams distribute` directive.
Modified:
Author: sylvestre
Date: Wed Nov 29 07:11:53 2017
New Revision: 319319
URL: http://llvm.org/viewvc/llvm-project?rev=319319=rev
Log:
Follow up of r319317, add the missing header file
Modified:
cfe/trunk/lib/Driver/ToolChains/Cuda.cpp
Modified: cfe/trunk/lib/Driver/ToolChains/Cuda.cpp
URL:
jkorous-apple added inline comments.
Comment at: tools/libclang/CIndexer.cpp:131
+ if (!File.empty())
+llvm::sys::fs::remove(File);
+}
Just a thought - since we are not propagating errors from constructor we are
not really sure we were able to create the
Author: klimek
Date: Wed Nov 29 07:09:12 2017
New Revision: 319318
URL: http://llvm.org/viewvc/llvm-project?rev=319318=rev
Log:
Fix 'control reaches end of non-void' warning by using llvm_unreachable.
Modified:
cfe/trunk/lib/Format/BreakableToken.cpp
Modified:
ioeric updated this revision to Diff 124745.
ioeric added a comment.
Herald added a subscriber: klimek.
Merged with origin/master
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D40548
Files:
clangd/ASTIndex.cpp
clangd/ASTIndex.h
clangd/CMakeLists.txt
spatel added a comment.
Side note: I think there is a different bug here in clang because from what I
can tell, we convert the builtin or libcall to 'frem' even when errno could be
set by the call. https://reviews.llvm.org/D40044 doesn't address this case
because frem is an LLVM instruction
Author: sylvestre
Date: Wed Nov 29 07:03:28 2017
New Revision: 319317
URL: http://llvm.org/viewvc/llvm-project?rev=319317=rev
Log:
Add the nvidia-cuda-toolkit Debian package path to search path
Summary:
Reported here:
http://bugs.debian.org/882505
Patch by Andreas Beckmann
Reviewers:
This revision was automatically updated to reflect the committed changes.
Closed by commit rC319317: Add the nvidia-cuda-toolkit Debian package path to
search path (authored by sylvestre).
Repository:
rC Clang
https://reviews.llvm.org/D40453
Files:
lib/Driver/ToolChains/Cuda.cpp
Index:
spetrovic added a comment.
I tried to compile some important libraries for X86 and MIPS64 within Chromium
with clang/llvm. I have compared results between LLVM trunk, and LLVM trunk
with my patch. There is code size improvement on many libraries, here are some
results:
- X86
libframe
alexfh added a comment.
A couple of late comments.
Comment at: clang-tidy/fuchsia/DefaultArgumentsCheck.cpp:39
+ return;
+} else if (DefaultArgRange.getBegin().isMacroID()) {
+ diag(D->getLocStart(),
No `else` after `return`, please.
ioeric updated this revision to Diff 124740.
ioeric added a comment.
- Clarify comment for includeGlobals()
https://reviews.llvm.org/D40562
Files:
include/clang/Sema/CodeCompleteConsumer.h
lib/Sema/SemaCodeComplete.cpp
lib/Sema/SemaLookup.cpp
test/CodeCompletion/ignore-global-decls.cpp
spatel added a comment.
Ping * 2.
https://reviews.llvm.org/D39812
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
ioeric updated this revision to Diff 124739.
ioeric marked 4 inline comments as done.
ioeric added a comment.
- Address review comments.
https://reviews.llvm.org/D40563
Files:
include/clang/Sema/CodeCompleteConsumer.h
lib/Sema/SemaCodeComplete.cpp
Index: lib/Sema/SemaCodeComplete.cpp
ioeric added inline comments.
Comment at: lib/Sema/SemaCodeComplete.cpp:4609
+ if (SS.isInvalid()) {
+CodeCompletionContext CC(CodeCompletionContext::CCC_Name);
ilya-biryukov wrote:
> ilya-biryukov wrote:
> > Why do we alter this code path?
> Maybe we
This revision was automatically updated to reflect the committed changes.
Closed by commit rL319314: Restructure how we break tokens. (authored by
klimek).
Repository:
rL LLVM
https://reviews.llvm.org/D40310
Files:
cfe/trunk/lib/Format/BreakableToken.cpp
Author: klimek
Date: Wed Nov 29 06:29:43 2017
New Revision: 319314
URL: http://llvm.org/viewvc/llvm-project?rev=319314=rev
Log:
Restructure how we break tokens.
This fixes some bugs in the reflowing logic and splits out the concerns
of reflowing from BreakableToken.
Things to do after this
ABataev requested changes to this revision.
ABataev added a comment.
This revision now requires changes to proceed.
I'm unable to reproduce a crash, the test works correctly even without you patch
https://reviews.llvm.org/D40588
___
cfe-commits
spatel added reviewers: efriedma, hfinkel.
spatel added a comment.
I don't know the history of the frem instruction in IR, and the description in
http://llvm.org/docs/LangRef.html#frem-instruction is vague.
But based on the existing code, I think this is working as intended. If the
instruction
alexfh requested changes to this revision.
alexfh added inline comments.
This revision now requires changes to proceed.
Comment at: clang-tidy/fuchsia/MultipleInheritanceCheck.cpp:22
+AST_MATCHER(CXXRecordDecl, hasDefinition) {
+ if (!Node.hasDefinition())
+return false;
dberris closed this revision.
dberris added a comment.
Already commited; closing this revision out now.
https://reviews.llvm.org/D39114
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
krasimir accepted this revision.
krasimir added a comment.
This revision is now accepted and ready to land.
LGTM
https://reviews.llvm.org/D40310
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
jkorous-apple added a comment.
I am sorry I wasn't really clear. What I meant was to do something like this
(pseudo-code, dealing only with newlines):
if( Str.size() == 0)
return;
// Calculate all the extra space needed first.
typename T::size_type extra_space = 0;
bool
dberris created this revision.
The -fxray-always-emit-customevents flag instructs clang to always emit
the LLVM IR for calls to the `__xray_customevent(...)` built-in
function. The default behaviour currently respects whether the function
has an `[[clang::xray_never_instrument]]` attribute, and
kosarev updated this revision to Diff 124726.
kosarev added a comment.
- Added tests with nested unions.
- Rebased.
https://reviews.llvm.org/D39455
Files:
lib/CodeGen/CGExpr.cpp
lib/CodeGen/CodeGenModule.h
lib/CodeGen/CodeGenTBAA.cpp
lib/CodeGen/CodeGenTBAA.h
ilya-biryukov added inline comments.
Comment at: lib/Sema/SemaCodeComplete.cpp:4609
+ if (SS.isInvalid()) {
+CodeCompletionContext CC(CodeCompletionContext::CCC_Name);
ilya-biryukov wrote:
> Why do we alter this code path?
Maybe we should add a test or
ilya-biryukov added inline comments.
Comment at: include/clang/Sema/CodeCompleteConsumer.h:284
+ llvm::Optional ScopeSpecifier;
+
Maybe add a brief comment for consistency with other decls?
Comment at: lib/Sema/SemaCodeComplete.cpp:4609
+
lebedev.ri added inline comments.
Comment at: lib/StaticAnalyzer/Checkers/UndefinedAssignmentChecker.cpp:64
+if (const UnaryOperator *U = dyn_cast(StoreE)) {
+ str = "The expression of the unary operator is an uninitialized value. "
+"The computed value will
klimek added inline comments.
Comment at: lib/Format/ContinuationIndenter.cpp:1749
+ }
+ if (!Reflow) {
+// If we didn't reflow into the next line, the only space to consider
is
krasimir wrote:
> nit: Maybe change this to `if (Reflow)` and
dberris updated this revision to Diff 124717.
dberris added a comment.
- [XRay][compiler-rt][Darwin] Use dynamic initialisation as an alternative
https://reviews.llvm.org/D39114
Files:
compiler-rt/cmake/config-ix.cmake
compiler-rt/lib/xray/CMakeLists.txt
MontyKutyi added a comment.
Ping.
https://reviews.llvm.org/D34030
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
sammccall created this revision.
Herald added subscribers: cfe-commits, klimek.
- JSON<->Obj interface is now ADL functions, so they play nicely with enums
- recursive vector/map parsing and ObjectMapper moved to JSONExpr and tested
- renamed (un)parse to (de)serialize, since text -> JSON is
Author: sammccall
Date: Wed Nov 29 03:36:46 2017
New Revision: 319309
URL: http://llvm.org/viewvc/llvm-project?rev=319309=rev
Log:
[clangd] Simplify common JSON-parsing patterns in Protocol.
Summary:
This makes the parse() functions about as short as they can be given the
current signature, and
This revision was automatically updated to reflect the committed changes.
Closed by commit rL319309: [clangd] Simplify common JSON-parsing patterns in
Protocol. (authored by sammccall).
Changed prior to commit:
https://reviews.llvm.org/D40564?vs=124585=124713#toc
Repository:
rL LLVM
krasimir added inline comments.
Comment at: lib/Format/ContinuationIndenter.cpp:1749
+ }
+ if (!Reflow) {
+// If we didn't reflow into the next line, the only space to consider
is
nit: Maybe change this to `if (Reflow)` and switch the if-else
sepavloff added a comment.
In https://reviews.llvm.org/D40508#938686, @rjmccall wrote:
> In https://reviews.llvm.org/D40508#938675, @sepavloff wrote:
>
> > In https://reviews.llvm.org/D40508#938040, @rjmccall wrote:
> >
> > > My skepticism about the raw_ostream is not about the design of having
ilya-biryukov added a comment.
This is how I always perceived this option in the first place, so LGTM.
But maybe its intention is different, so we should wait for @arphaman's
comments.
Could you also update comments of `CodeCompleteConsumer::includeGlobals` and
klimek added inline comments.
Comment at: lib/Format/ContinuationIndenter.cpp:1707
+ RemainingTokenColumns = Token->getRemainingLength(
+ NextLineIndex, TailOffset, ContentStartColumn);
+ Reflow = true;
krasimir wrote:
> When we're
klimek updated this revision to Diff 124709.
klimek marked 4 inline comments as done.
klimek added a comment.
Address review comments.
https://reviews.llvm.org/D40310
Files:
lib/Format/BreakableToken.cpp
lib/Format/BreakableToken.h
lib/Format/ContinuationIndenter.cpp
ilya-biryukov added inline comments.
Comment at: clangd/FuzzyMatch.cpp:118
+0x00, 0x00, 0x00, 0x00, // Control characters
+0xff, 0xff, 0xff, 0xff, // Punctuation
+0x55, 0x55, 0xf5, 0xff, // Numbers->Lower, more Punctuation.
I'm not sure if we care,
ioeric accepted this revision.
ioeric added a comment.
This revision is now accepted and ready to land.
lgtm
Comment at: clangd/Protocol.cpp:56
+assert(*this && "Must check this is an object before calling parse()");
+if (const json::Expr *E = O->get(Prop)) {
+
hokein added inline comments.
Comment at: clang-tidy/objc/AvoidNserrorInitCheck.cpp:31
+ diag(MatchedExpr->getLocStart(),
+ "use errorWithDomain:code:userInfo: to create a new NSError");
+}
not sure what's the best message here.
From apple's document:
>
hokein added inline comments.
Comment at: include/clang/Tooling/Refactoring/Rename/RenamingAction.h:79
QualifiedRenameRule(const NamedDecl *ND,
- std::string NewQualifiedName)
+ const std::string )
: ND(ND),
Quolyk created this revision.
Motivation: https://bugs.llvm.org/show_bug.cgi?id=34870
I'm totally not sure this is correct
https://reviews.llvm.org/D40594
Files:
lib/CodeGen/CGBuiltin.cpp
test/CodeGen/builtins.c
Index: test/CodeGen/builtins.c
Author: mstorsjo
Date: Wed Nov 29 00:21:12 2017
New Revision: 319300
URL: http://llvm.org/viewvc/llvm-project?rev=319300=rev
Log:
Support building libunwind as a DLL
Differential Revision: https://reviews.llvm.org/D40483
Modified:
libunwind/trunk/CMakeLists.txt
Author: mstorsjo
Date: Wed Nov 29 00:20:57 2017
New Revision: 319299
URL: http://llvm.org/viewvc/llvm-project?rev=319299=rev
Log:
[CMake] Use the variable from the right project in install-unwind
Modified:
libunwind/trunk/src/CMakeLists.txt
Modified: libunwind/trunk/src/CMakeLists.txt
URL:
101 - 161 of 161 matches
Mail list logo