linter: Check for namespaces at start of the line (#563)

This commit is contained in:
Narr the Reg 2025-04-22 01:27:31 -06:00 committed by GitHub
parent 57999c370d
commit 7041d6ce7c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -9,8 +9,8 @@ class DemoActorHolder;
class LiveActor;
class Scene;
al::AddDemoInfo* registDemoRequesterToAddDemoInfo(const LiveActor* actor,
const ActorInitInfo& initInfo, s32 index);
AddDemoInfo* registDemoRequesterToAddDemoInfo(const LiveActor* actor, const ActorInitInfo& initInfo,
s32 index);
void registActorToDemoInfo(LiveActor* actor, const ActorInitInfo& initInfo);
void addDemoActorFromAddDemoInfo(const LiveActor* actor, const AddDemoInfo* info);
void addDemoActorFromDemoActorHolder(const LiveActor* actor, const DemoActorHolder* holder);

View file

@ -75,7 +75,7 @@ def common_no_namespace_qualifiers(c, path):
del nest_level[-1]
continue
matches = re.findall(r"[\(,\s]([^\(,\s]+::)+[^\(,\s]+", x)
matches = re.findall(r"([^\(,\s]+::)+[^\(,\s]+", x)
for match in matches:
match = match[0:-2]
# examples: "sead", "al", "nn::g3d"