summaryrefslogtreecommitdiff
path: root/docs/CodingStandards.rst
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2012-09-20 17:02:04 +0000
committerAndrew Trick <atrick@apple.com>2012-09-20 17:02:04 +0000
commite9f59888d4e4016ccb00a02301f2a29be85575ac (patch)
tree706eed4c030139477507a7cb21cf09fa6eac92e5 /docs/CodingStandards.rst
parent4aa189909a194b4b858aefa0c186fa6504845bfd (diff)
downloadllvm-e9f59888d4e4016ccb00a02301f2a29be85575ac.tar.gz
llvm-e9f59888d4e4016ccb00a02301f2a29be85575ac.tar.bz2
llvm-e9f59888d4e4016ccb00a02301f2a29be85575ac.tar.xz
Fix function names in coding style examples
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164311 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/CodingStandards.rst')
-rw-r--r--docs/CodingStandards.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/CodingStandards.rst b/docs/CodingStandards.rst
index cb57b89029..4f955e3012 100644
--- a/docs/CodingStandards.rst
+++ b/docs/CodingStandards.rst
@@ -421,9 +421,9 @@ exit from a function, consider this "bad" code:
.. 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 @@ It is much preferred to format the code like this:
.. 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 @@ It is much preferred to format the code like this:
return 0;
// This is really just here for example.
- if (!SomeOtherThing(I))
+ if (!doOtherThing(I))
return 0;
... some long code ....