diff options
| author | Andrew Trick <atrick@apple.com> | 2012-09-20 17:02:04 +0000 |
|---|---|---|
| committer | Andrew Trick <atrick@apple.com> | 2012-09-20 17:02:04 +0000 |
| commit | e6af4b9a354677865c71525ecc1be514e275c8d5 (patch) | |
| tree | 8a54baca65aee35a1c996767524cabd1627bd259 /llvm | |
| parent | d0dcae08e56b059a7fd012dd941d544dd6b0dad8 (diff) | |
| download | bcm5719-llvm-e6af4b9a354677865c71525ecc1be514e275c8d5.tar.gz bcm5719-llvm-e6af4b9a354677865c71525ecc1be514e275c8d5.zip | |
Fix function names in coding style examples
llvm-svn: 164311
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/docs/CodingStandards.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/docs/CodingStandards.rst b/llvm/docs/CodingStandards.rst index cb57b890297..4f955e3012b 100644 --- a/llvm/docs/CodingStandards.rst +++ b/llvm/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 .... |

