mirror of
https://github.com/MonsterDruide1/OdysseyDecomp
synced 2026-04-23 09:04:21 +00:00
linter: Check for namespaces at start of the line (#563)
This commit is contained in:
parent
57999c370d
commit
7041d6ce7c
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue