[llvm] r329277 - Minor fix in docs.
Alexander Kornienko via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 5 05:48:22 PDT 2018
Author: alexfh
Date: Thu Apr 5 05:48:22 2018
New Revision: 329277
URL: http://llvm.org/viewvc/llvm-project?rev=329277&view=rev
Log:
Minor fix in docs.
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=329277&r1=329276&r2=329277&view=diff
==============================================================================
--- llvm/trunk/docs/CodingStandards.rst (original)
+++ llvm/trunk/docs/CodingStandards.rst Thu Apr 5 05:48:22 2018
@@ -808,8 +808,8 @@ As a rule of thumb, use ``auto &`` unles
for (auto Val : Container) { Val.change(); saveSomewhere(Val); }
// Copy pointers, but make it clear that they're pointers.
- for (const auto \*Ptr : Container) { observe(\*Ptr); }
- for (auto \*Ptr : Container) { Ptr->change(); }
+ for (const auto *Ptr : Container) { observe(*Ptr); }
+ for (auto *Ptr : Container) { Ptr->change(); }
Beware of non-determinism due to ordering of pointers
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
More information about the llvm-commits
mailing list