View Issue Details

IDProjectCategoryView StatusLast Update
0000098file[All Projects] Generalpublic2019-08-11 08:49
ReporterjohannesAssigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version5.37 
Target VersionFixed in Version 
Summary0000098: LLVM Assembly Language files (*.ll) are reported as C source
DescriptionFiles containing the human-readable assembly language of the LLVM intermediate representation are mistakenly reported to be C source.
Perhaps we can add some simple patterns to distuingish them. The mime type could be "text/x-llvm" or "text/x-llvm-ir".
LLVM Language: https://llvm.org/docs/LangRef.html
Steps To Reproduce$ cat > main.ll << EOF
define i8 @main() {
    ret i8 123
}
EOF

$ file main.ll
main.ll: C source, ASCII text
Additional InformationHere are some magic patterns I've been using which seem to work

cat >> magic/Magdir/llvm <<EOF
0 search/8192 define LLVM Assembly Language text
!:mime text/x-llvm
>0 regex \^define

0 search/8192 declare LLVM Assembly Language text
!:mime text/x-llvm
>0 regex \^declare
EOF
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2019-08-11 08:47 johannes New Issue