MCPcopy Create free account
hub / github.com/FastLED/FastLED / build_query

Function build_query

ci/tools/check_noexcept.py:92–105  ·  view source on GitHub ↗

Build the clang-query matcher for actionable owned functions.

(file_regex: str)

Source from the content-addressed store, hash-verified

90
91
92def build_query(file_regex: str) -> str:
93 """Build the clang-query matcher for actionable owned functions."""
94 matcher = (
95 "match functionDecl("
96 "unless(isNoThrow()), "
97 "unless(isDeleted()), "
98 "unless(isDefaulted()), "
99 "unless(isImplicit()), "
100 "unless(cxxDestructorDecl()), "
101 "unless(cxxMethodDecl(ofClass(cxxRecordDecl(isLambda())))), "
102 "unless(hasParent(linkageSpecDecl())), "
103 f'isExpansionInFileMatching("{file_regex}"))'
104 )
105 return f"set output diag\n{matcher}\n"
106
107
108def normalize_signature(signature: str) -> str:

Callers 1

_run_clang_queryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected