Disable or improve inspections for ARM assembly files?
Answered
Hi all, I'm working with a project that has a large number of ARM assembler source files. Unfortunately, CLion struggles immensely with the syntax and throws almost one error per line. I get the impression that CLion is only really set up for native asm (x86).
Is there a way to disable the inspections on files matching **/*.s? Alternatively, is there a way to tell CLion to treat .s files as ARM instead of x86?
Please sign in to leave a comment.
Hi Scott!
For now syntax highlighting is available only for AT&T assembly code. Feel free to comment or upvote https://youtrack.jetbrains.com/issue/CPP-9457. See https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications if you are not familiar with YouTrack.
>Is there a way to disable the inspections on files matching **/*.s?
You can change the highlighting level for a file in the editor - https://www.jetbrains.com/help/clion/disabling-and-enabling-inspections.html#change-highlighting-level-for-file.
Or you can go to Settings / Preferences | Editor | File Type, select Assembly Language, remove the .s files and open these files as text in CLion.