- Sep 30, 2013
-
-
David Blaikie authored
llvm-svn: 191682
-
Yunzhong Gao authored
Differential Revision: http://llvm-reviews.chandlerc.com/D1751 llvm-svn: 191681
-
Edwin Vane authored
The help text for clang-format's -style option and the function that processes its value is moved to libFormat in this patch. The goal is to enable other tools that use libFormat and also have a -style option to behave consistently with clang-format. llvm-svn: 191666
-
Manuel Klimek authored
TemplateDeclInstantiator takes the MultiLevelArgumentList by const-ref and stores a const-ref member. Thus, we must not pass a temporary into the constructor. llvm-svn: 191665
-
Daniel Jasper authored
Previously, comments, could totally confuse it. Before: return // true if code is one of a or b. code == a || code == b; After: return // true if code is one of a or b. code == a || code == b; llvm-svn: 191654
-
Chandler Carruth authored
such option I've been able to find in the wild in our build system. Note that I haven't added test cases for this. I can do so if folks want, but they're *really* boring considering that this is all generated code to parse and ignore unsued options. llvm-svn: 191653
-
Chandler Carruth authored
prefix. Sort the ignored boolean 'f' flags at the bottom of this file. No functionality changed. llvm-svn: 191651
-
NAKAMURA Takumi authored
llvm-svn: 191648
-
- Sep 29, 2013
-
-
Faisal Vali authored
I got a bunch of buildbot failures that i don't understand - sorry. llvm-svn: 191647
-
Faisal Vali authored
As Richard pointed out to me, dyn_cast is very cheap - there is no real benefit from adding cluttery overloads to only avoid that cast. No functionality change. llvm-svn: 191646
-
Faisal Vali authored
When nested lambdas are used in NSDMI's - this prevents infinite recursion. See http://llvm-reviews.chandlerc.com/D1783 for Doug's approval regarding the code, and then request for some tests. [On a related note, I need this patch so as to pass tests of transformations of nested lambdas returned from member functions] llvm-svn: 191645
-
Manuel Klimek authored
llvm-svn: 191642
-
Faisal Vali authored
llvm-svn: 191641
-
Daniel Jasper authored
llvm-svn: 191640
-
Daniel Jasper authored
Before, this could would lead to an assert: llvm::errs() << " << a; llvm-svn: 191639
-
Faisal Vali authored
The general strategy is to create template versions of the conversion function and static invoker and then during template argument deduction of the conversion function, create the corresponding call-operator and static invoker specializations, and when the conversion function is marked referenced generate the body of the conversion function using the corresponding static-invoker specialization. Similarly, Codegen does something similar - when asked to emit the IR for a specialized static invoker of a generic lambda, it forwards emission to the corresponding call operator. This patch has been reviewed in person both by Doug and Richard. Richard gave me the LGTM. A few minor changes: - per Richard's request i added a simple check to gracefully inform that captures (init, explicit or default) have not been added to generic lambdas just yet (instead of the assertion violation). - I removed a few lines of code that added the call operators instantiated parameters to the currentinstantiationscope. Not only did it not handle parameter packs, but it is more relevant in the patch for nested lambdas which will follow this one, and fix that problem more comprehensively. - Doug had commented that the original implementation strategy of using the TypeSourceInfo of the call operator to create the static-invoker was flawed and allowed const as a member qualifier to creep into the type of the static-invoker. I currently kludge around it - but after my initial discussion with Doug, with a follow up session with Richard, I have added a FIXME so that a more elegant solution that involves the use of TrivialTypeSourceInfo call followed by the correct wiring of the template parameters to the functionprototypeloc is forthcoming. Thanks! llvm-svn: 191634
-
Ed Schouten authored
Clang uses UTF-16 and UTF-32 for its char16_t's and char32_t's exclusively. This means that we can define __STDC_UTF_16__ and __STDC_UTF_32__ unconditionally. While there, define __STDC_MB_MIGHT_NEQ_WC__ for FreeBSD. FreeBSD's wchar_t's don't encode characters as ISO-10646; the encoding depends on the locale used. Because the character set used might not be a superset of ASCII, we must define __STDC_MB_MIGHT_NEQ_WC__. llvm-svn: 191631
-
Richard Smith authored
instead, it's enabled by the -cc1 flag -fsized-deallocation, until we sort out the backward-compatibility issues. llvm-svn: 191629
-
- Sep 28, 2013
-
-
Richard Smith authored
llvm-svn: 191627
-
Benjamin Kramer authored
llvm-svn: 191623
-
James Dennett authored
llvm-svn: 191622
-
Benjamin Kramer authored
llvm-svn: 191615
-
Benjamin Kramer authored
- We scan for whitespace between comments anyways, remember any newlines seen along the way. - Use this newline number to decide whether two comments are adjacent. - Since the newline check is now free remove the caching and unused code. - Remove unnecessary boolean state from the comment list. - No behavioral change. llvm-svn: 191614
-
Simon Atanasyan authored
multi-library path suffix. The code calculates MIPS toolchain specific multi-lib path suffixes like mips16/soft-float/el is moved to the separate function findMultiLibSuffix(). This function called during GCC installation detection and result is stored for the future using. The patch reviewed by Rafael Espindola. http://llvm-reviews.chandlerc.com/D1738 llvm-svn: 191612
-
Richard Smith authored
llvm-svn: 191609
-
Richard Smith authored
llvm-svn: 191608
-
Richard Smith authored
llvm-svn: 191607
-
Richard Smith authored
putting them in the call operator's DeclContext. This better matches the language wording and avoids some cases where code gets confused by them for namespace-scope lambdas and the like. llvm-svn: 191606
-
Richard Smith authored
and capturing a variable declaration, and complete the implementation of them. llvm-svn: 191605
-
Jordan Rose authored
...rather than trying to figure it out from the call site, and having people complain that we guessed wrong and that a prototype-less call is the same as a variadic call on their system. More importantly, fix a crash when there's no decl at the call site (though we could have just returned a default value). <rdar://problem/15037033> llvm-svn: 191599
-
Warren Hunt authored
llvm-svn: 191592
-
Warren Hunt authored
Differential Revision: http://llvm-reviews.chandlerc.com/D1766 llvm-svn: 191590
-
Kaelyn Uhrain authored
llvm-svn: 191589
-
Manman Ren authored
Struct-path aware TBAA generates tags to specify the access path, while scalar TBAA only generates tags to scalar types. llvm-svn: 191586
-
Fariborz Jahanian authored
if property name is a valid identifier in the underlying language. // rdar://15044184 llvm-svn: 191584
-
Chandler Carruth authored
tomorrow is complete. There is a missing warning due to a serious issue with template instantiation in Clang (and potentially in the core language). llvm-svn: 191577
-
Chandler Carruth authored
uses. This fixes one of the two remaining failures to implement [[deprecated]] as specified for C++14. llvm-svn: 191572
-
- Sep 27, 2013
-
-
Douglas Gregor authored
llvm-svn: 191562
-
Justin Bogner authored
llvm-svn: 191560
-
Justin Bogner authored
C++ operators are represented by CXXOperatorName now, which is already documented. llvm-svn: 191559
-