- 
    
Bug
 - 
    Resolution: Duplicate
 - 
    
P3: Somewhat important
 - 
    None
 - 
    Qt Creator 4.7.2, Qt Creator 4.8.0
 - 
    None
 
The highlighting of disabled with code is wrong when using the clang code model. The #if or #ifdef ist highlighted as disabled code, but the corresponding #endif or #else is not. For consistency the #if directive should also not be marked as inactive code. See the attached screenshot.
Interestingly, it looks good when the preprocessor directives are indented. Also, the builtin code model is fine.

- duplicates
 - 
                    
QTCREATORBUG-23714 respect clang's macro annotation range
-         
 - Closed
 
 -