<div dir="ltr">Hello,<div><br></div><div>I'm trying to write a Clang Tidy check that will generate a warning if a certain variable is declared as "extern" in more than one file.</div><div><br></div><div>I was able to add find extern variable declarations using AST matchers, but so far I haven't managed to determine in my check if a variable is declared in two different files.<br></div><div><br></div><div>Does the Clang Tidy API provide a way of remembering nodes that were matched in previous checks? Or should I implement it myself (for example using a list or writing to a file)?</div><div><br></div><div>Thanks!</div><div>Gilad Beer</div></div>