Open Bug 1242026 Opened 8 years ago Updated 2 years ago

Regularize SpiderMonkey's include guards again

Categories

(Core :: JavaScript Engine, defect)

defect

Tracking

()

Tracking Status
firefox46 --- affected

People

(Reporter: terrence, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

      No description provided.
Attachment #8711151 - Flags: review?(jorendorff)
I found these using the following script:

'''bash
#!/bin/bash
FILES=`find . -name "*.h" | grep -v irreg | grep -v libffi | grep -v vixl | grep -v editline | grep -v vtune | grep -v style | grep -v llvm-compiler-rt`

for FILE in $FILES; do
    GUARDNAME=`sed -n "s/#ifndef \(.*_h\)$/\1/p" ${FILE}`
    if [ -z $GUARDNAME ]; then
        echo "Missing guard in: "$FILE
    fi
done
'''
Note: there are probably more wrong-style include guards, but I care less about those.
Blocks: 1242045
Component: JavaScript: GC → JavaScript Engine
(In reply to Terrence Cole [:terrence] from comment #1)
> I found these using the following script:

Nice!  

Is it possible to add a check like this to check_spidermonkey_style.py?
Attachment #8711151 - Flags: review?(jorendorff) → review+
Assignee: terrence.d.cole → nobody
Status: ASSIGNED → NEW
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: