[clang] 391c15f - [NFC] Correct typo in comment after D76038
Aaron Puchert via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 22 17:26:56 PDT 2020
Author: Aaron Puchert
Date: 2020-04-23T02:26:02+02:00
New Revision: 391c15fccdc6b0d33bb651a298c07216e532904e
URL: https://github.com/llvm/llvm-project/commit/391c15fccdc6b0d33bb651a298c07216e532904e
DIFF: https://github.com/llvm/llvm-project/commit/391c15fccdc6b0d33bb651a298c07216e532904e.diff
LOG: [NFC] Correct typo in comment after D76038
Added:
Modified:
clang/include/clang/AST/DeclBase.h
Removed:
################################################################################
diff --git a/clang/include/clang/AST/DeclBase.h b/clang/include/clang/AST/DeclBase.h
index 91875377679d..da8b25b497b0 100644
--- a/clang/include/clang/AST/DeclBase.h
+++ b/clang/include/clang/AST/DeclBase.h
@@ -871,11 +871,11 @@ class alignas(8) Decl {
/// Returns true if this declaration is lexically inside a function or inside
/// a variable initializer. It recognizes non-defining declarations as well
- /// as members of local classes:
+ /// as members of local classes and lambdas:
/// \code
/// void foo() { void bar(); }
/// void foo2() { class ABC { void bar(); }; }
- /// inline int x = [](){ return 0; };
+ /// inline int x = [](){ return 0; }();
/// \endcode
bool isInLocalScope() const;
More information about the cfe-commits
mailing list