- Mar 07, 2014
-
-
Duncan P. N. Exon Smith authored
Using const is orthogonal to guidelines on using auto& and auto*. llvm-svn: 203257
-
Duncan P. N. Exon Smith authored
llvm-svn: 203254
-
- Mar 03, 2014
-
-
Reid Kleckner authored
We'd like to keep the clang-cl self-host working until we implement MSVC-compatible RTTI. Differential Revision: http://llvm-reviews.chandlerc.com/D2930 llvm-svn: 202758
-
Peter Collingbourne authored
Differential Revision: http://llvm-reviews.chandlerc.com/D2923 llvm-svn: 202750
-
Duncan P. N. Exon Smith authored
It's easy to copy unintentionally when using 'auto', particularly inside range-based for loops. Best practise is to use 'const&' unless there's a good reason not to. llvm-svn: 202729
-
Duncan P. N. Exon Smith authored
The current coding standards restrict the use of struct to PODs, but no one has been following them. This patch updates the standards to clarify when structs are dangerous and describe common practice in LLVM. llvm-svn: 202728
-
- Mar 02, 2014
-
-
Chandler Carruth authored
facilitate the nice formatting of lambdas passed there. Suggested by Chris during review of my lambda additions, and something I strongly agree with. llvm-svn: 202622
-
Chandler Carruth authored
about a few constructs in C++11 that are worth starting off in a consistent manner within the codebase. This will be matched with a change to clang-format's LLVM style which will switch the options to support C++11 and use these conventions. llvm-svn: 202620
-
Sean Silva authored
The docs now build cleanly. Yay! The following warnings were fixed: /home/sean/pg/llvm/llvm/docs/HowToReleaseLLVM.rst:364: WARNING: Enumerated list ends without a blank line; unexpected unindent. /home/sean/pg/llvm/llvm/docs/InAlloca.rst:: WARNING: document isn't included in any toctree /home/sean/pg/llvm/llvm/docs/CodingStandards.rst:85: WARNING: Title underline too short. Supported C++11 Language and Library Features ------------------------------------------- /home/sean/pg/llvm/llvm/docs/CodingStandards.rst:85: WARNING: Title underline too short. Supported C++11 Language and Library Features ------------------------------------------- /home/sean/pg/llvm/llvm/docs/GettingStarted.rst:185: WARNING: Explicit markup ends without a blank line; unexpected unindent. /home/sean/pg/llvm/llvm/docs/GettingStarted.rst:565: WARNING: Explicit markup ends without a blank line; unexpected unindent. /home/sean/pg/llvm/llvm/docs/GettingStarted.rst:567: WARNING: Block quote ends without a blank line; unexpected unindent. llvm-svn: 202603
-
- Mar 01, 2014
-
-
Chandler Carruth authored
The switch has been thrown. While I'm still watching for any failures or problems with this, the documentation can go ahead and move forward. llvm-svn: 202566
-
- Feb 28, 2014
-
-
Chandler Carruth authored
bots when using the standard library facilities. The missing pieces here aren't always in useful discreet chunks. Fortunately, the missing pieces are few and far between, and we can emulate most of them in our headers as needed. Based on feedback from Lang and Dave. llvm-svn: 202548
-
Richard Smith authored
llvm-svn: 202538
-
Richard Smith authored
llvm-svn: 202537
-
Ben Langmuir authored
llvm-svn: 202532
-
Chandler Carruth authored
A lot of this is writing down common knowledge and things often communicated on mailing lists and in discussions. It could live in the Programmer's Manual alternatively, but that felt slightly less well-fitting. It also includes (and was motivated by) the section on the relevant language standards for LLVM and the specific features that will be enabled with the switch to C++11. With this, all of the documentation for the C++11 switch is, I think, in place. I plan to flip the switch RSN. =] llvm-svn: 202497
-
Chandler Carruth authored
standards. It claims the document intentionally doesn't give fixed standards for brace placement or spacing, and then the document goes on to do precisely that in several places. Instead, try to highlight that even these rules are simply *guidance* which may be trumped by some other circumstance or the local conventions of code. I'm not trying to change the thrust of this part of the document, and if folks think this does so, I'm happy to re-wordsmith it. I just don't want it to be so self-contradicting. llvm-svn: 202495
-
- Jan 20, 2014
-
-
Chandler Carruth authored
coding standards, and instead fix the existing section. Thanks to Daniel Jasper for pointing out we already had a section devoted to this topic. Instead of adding sections, just hack on this section some. Also fix the example in the anonymous namespace section below it to agree with the new advice. As a re-cap, this switches the LLVM preferred style to never indent namespaces. Having two approaches just led to endless (and utterly pointless) debates about what was "small enough". This wasn't helping anyone. The no-indent rule is easy to understand and doesn't really make anything harder to read. Moreover, with tools like clang-format it is considerably nicer to have simple consistent rules. llvm-svn: 199637
-
Chandler Carruth authored
(and to mention namespace ending comments). This is based on a quick discussion on the developer mailing list where there was essentially no objections to a simple and consistent rule. This should avoid future debates about whether or not a namespace is "big enough" to indent. It also matches clang-format's current behavior with LLVM source code which hasn't really seen any opposition in code reviews that I spot checked. llvm-svn: 199620
-
- Dec 05, 2013
-
-
Alp Toker authored
This patch tries to avoid unrelated changes other than fixing a few hyphen-related ambiguities and contractions in nearby lines. llvm-svn: 196471
-
- Sep 01, 2013
-
-
Chris Lattner authored
This is under active discussion. llvm-svn: 189730
-
- Aug 31, 2013
-
-
Chris Lattner authored
implementation files. While doc generation systems don't need this, humans do benefit from it. Not everyone reads all code through doxygen. llvm-svn: 189704
-
- Aug 07, 2013
-
-
Rafael Espindola authored
llvm-svn: 187902
-
- Feb 04, 2013
-
-
Dmitri Gribenko authored
definition Current practice is not to use 'inline' in: class Foo { public: inline void bar() { // ... } }; llvm-svn: 174317
-
- Jan 22, 2013
-
-
Joel Jones authored
llvm-svn: 173103
-
- Jan 11, 2013
-
-
Sean Silva authored
Before we learned about :doc:, we used :ref: and put a dummy link at the top of each page. Don't do that anymore. This fixes PR14891 as a special case. llvm-svn: 172162
-
- Dec 02, 2012
-
-
Chandler Carruth authored
trivially achievable with an editor. I'll likely check in a silly python script to help with this too. llvm-svn: 169107
-
- Nov 18, 2012
-
-
Sean Silva authored
Some variables in code examples were not LikeThis. llvm-svn: 168275
-
- Nov 17, 2012
-
-
Sean Silva authored
llvm-svn: 168271
-
- Oct 27, 2012
-
-
Jordan Rose authored
llvm-svn: 166821
-
- Oct 20, 2012
-
-
Dmitri Gribenko authored
obvious stuff and most new code being committed conforms to that. Some old code does not; this might cause confusion and this is the motivation to document the correct guidelines. llvm-svn: 166378
-
- Oct 01, 2012
-
-
Michael J. Spencer authored
llvm-svn: 164964
-
- Sep 30, 2012
-
-
Jakub Staszak authored
llvm-svn: 164920
-
- Sep 21, 2012
-
-
David Blaikie authored
Wordsmithing by Matt Beaumont-Gay in response to r164389. llvm-svn: 164395
-
David Blaikie authored
llvm-svn: 164389
-
- Sep 20, 2012
-
-
Andrew Trick authored
llvm-svn: 164311
-
Andrew Trick authored
Try not to violate conventions immediately before explaining them. llvm-svn: 164278
-
- Sep 18, 2012
-
-
Dmitri Gribenko authored
llvm-svn: 164126
-
Craig Topper authored
llvm-svn: 164101
-
- Jun 21, 2012
-
-
Meador Inge authored
llvm-svn: 158880
-
Meador Inge authored
llvm-svn: 158877
-