We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29c8bcb commit 87e783aCopy full SHA for 87e783a
src/addon.h
@@ -79,6 +79,8 @@ class Statement {
79
// statements.
80
//
81
// If return value `false` - only whitespace and comments remain.
82
+ //
83
+ // Note: we use `rfind(..., 0)` for effectively a prefix check.
84
static inline bool HasTail(std::string const& tail) {
85
std::string p(tail);
86
while (!p.empty()) {
0 commit comments