1

semantic allows specification of C-preprocessor keywords using the variable semantic-lex-c-preprocessor-symbol-file, which is a list of C/C++ files that contain preprocessor macros. How do I get semantic to reload these files after changing one of them?

1 Answer 1

1

semantic uses the variable semantic-lex-c-preprocessor-symbol-map to store the C preprocessor keywords used by its C lexer. The function semantic-c-reset-preprocessor-symbol-map reconstructs this table using all the various input methods. So, on changing a file listed in semantic-lex-c-preprocessor-symbol-file, run (semantic-c-reset-preprocessor-symbol-map) to load these changes into semantics environment.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.