[llvm-commits] [llvm] r164311 - /llvm/trunk/docs/CodingStandards.rst
Andrew Trick
atrick at apple.com
Thu Sep 20 10:02:04 PDT 2012
Author: atrick
Date: Thu Sep 20 12:02:04 2012
New Revision: 164311
URL: http://llvm.org/viewvc/llvm-project?rev=164311&view=rev
Log:
Fix function names in coding style examples
Modified:
llvm/trunk/docs/CodingStandards.rst
Modified: llvm/trunk/docs/CodingStandards.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/CodingStandards.rst?rev=164311&r1=164310&r2=164311&view=diff
==============================================================================
--- llvm/trunk/docs/CodingStandards.rst (original)
+++ llvm/trunk/docs/CodingStandards.rst Thu Sep 20 12:02:04 2012
@@ -421,9 +421,9 @@
.. code-block:: c++
- Value *DoSomething(Instruction *I) {
+ Value *doSomething(Instruction *I) {
if (!isa<TerminatorInst>(I) &&
- I->hasOneUse() && SomeOtherThing(I)) {
+ I->hasOneUse() && doOtherThing(I)) {
... some long code ....
}
@@ -445,7 +445,7 @@
.. code-block:: c++
- Value *DoSomething(Instruction *I) {
+ Value *doSomething(Instruction *I) {
// Terminators never need 'something' done to them because ...
if (isa<TerminatorInst>(I))
return 0;
@@ -456,7 +456,7 @@
return 0;
// This is really just here for example.
- if (!SomeOtherThing(I))
+ if (!doOtherThing(I))
return 0;
... some long code ....
More information about the llvm-commits
mailing list