For a source file Test.c and a header file Test.h, if both Test.c and Test.h are open in the editor and Test.h is changed, the diagnostics shown in Test.c don't pick up that change until Test.h is saved.
In general, unsaved content from any file other than the one currently being modified is not picked up.
For a source file Test.c and a header file Test.h, if both Test.c and Test.h are open in the editor and Test.h is changed, the diagnostics shown in Test.c don't pick up that change until Test.h is saved.
In general, unsaved content from any file other than the one currently being modified is not picked up.