Skip to content
Snippets Groups Projects
  • Nikolai Kosjar's avatar
    beac7b95
    C++: Fix highlighting after "invalid code" · beac7b95
    Nikolai Kosjar authored
    
    For the semantic info document we do not expand function like macros and
    because of that certain macro invocations lead to invalid code that we
    need to handle, e.g.:
    
    	Q_GLOBAL_STATIC(CppTools::SymbolFinder, symbolFinder)
    	class Foo {};
    
    This change makes parsing Foo in the semantic info document successfully
    again, which affects highlighting of that class.
    
    Change-Id: I389265ac64d3f0b8b8f406d38fa58d78820b14ba
    Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@theqtcompany.com>
    beac7b95
    History
    C++: Fix highlighting after "invalid code"
    Nikolai Kosjar authored
    
    For the semantic info document we do not expand function like macros and
    because of that certain macro invocations lead to invalid code that we
    need to handle, e.g.:
    
    	Q_GLOBAL_STATIC(CppTools::SymbolFinder, symbolFinder)
    	class Foo {};
    
    This change makes parsing Foo in the semantic info document successfully
    again, which affects highlighting of that class.
    
    Change-Id: I389265ac64d3f0b8b8f406d38fa58d78820b14ba
    Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@theqtcompany.com>