Skip to content

Commit 48e2ea0

Browse files
committed
add an example.
1 parent 8634de5 commit 48e2ea0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,8 @@ static bool IsTrivialBasename(const llvm::StringRef &basename) {
209209
}
210210

211211
/// A context is trivial if an only if it matches this pattern.
212-
/// "^\s*([A-Za-z_:]*)\s*$".
212+
/// "^\s*([A-Za-z_:]*)\s*$". for example function `foo::bar::func()`
213+
/// has a trivial context but. but `foo<int>::bar::func()` doesn't.
213214
static bool IsTrivialContext(llvm::StringRef context) {
214215
// remove trailing or leading whitespace.
215216
context = context.trim();

0 commit comments

Comments
 (0)