Closed Bug 1646168 Opened 4 years ago Closed 4 years ago

clang-plugin test failures with clang 11

Categories

(Developer Infrastructure :: Source Code Analysis, defect, P3)

Tracking

(firefox80 fixed)

RESOLVED FIXED
mozilla80
Tracking Status
firefox80 --- fixed

People

(Reporter: away, Assigned: away)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

With clang trunk eae76faeeae7110389047c9d1ebe90990dec3497, several tests are not producing the expected errors. I've fixed some of the trivial syntactic issues in bug 1646158 but the following files have less-obvious problems that need a deeper investigation.

'TestCanRunScript.cpp',
'TestHeapClass.cpp',
'TestNANTestingExpr.cpp',
'TestNoArithmeticExprInArgument.cpp',
'TestNonTemporaryClass.cpp',
'TestRefCountedCopyConstructor.cpp',
'TestTemporaryClass.cpp',

Andi, would you be able to take a look?

Flags: needinfo?(bpostelnicu)

Here's another issue, the escapesFunction checker seems to be producing false positives:

modules/libpref/Preferences.cpp(1794,61): error: escapes function error: expression is not in call
       console->LogStringMessage(NS_ConvertUTF8toUTF16(aMsg).get());
                                                             ^

I've used trunk cff57391575da6bcc6f31e196bd73fa928b3abcb and I cannot reproduced the described issue, only some minor issues in the tests files that are easily fixable like you said.
Can you please try again?

Flags: needinfo?(bpostelnicu)

The severity field is not set for this bug.
:andi, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(bpostelnicu)

These started appearing in clang 11.

Assignee: nobody → dmajor
Status: NEW → ASSIGNED
Severity: -- → S4
Flags: needinfo?(bpostelnicu)
Priority: -- → P3
Pushed by dmajor@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3ec638a14304
Allow optional arrows in TestCanRunScript.cpp errors r=andi
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla80
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: