Closed Bug 500875 Opened 15 years ago Closed 6 years ago

Find literal strings/arrays/data that should be const static

Categories

(Developer Infrastructure :: Source Code Analysis, defect)

x86
Windows NT
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: pavlov, Assigned: hm.ashu)

References

Details

(Keywords: perf, student-project, Whiteboard: [good first bug])

Attachments

(1 file, 1 obsolete file)

Make things readonly in the library for the win.
Keywords: student-project
Whiteboard: [good first bug]
Keywords: perf
(In reply to comment #0) > Make things readonly in the library for the win. Can you please give some more detailed information about this bug. Id like to have a look at this to learn about the whole process of contributing to the project.
plz reply with more description on bug
Iam a student of mysore india iam a stu from sjce mysore,india and would like to take up dis bug.
Iam a student of mysore India. Iam a student from SJCE mysore,India and i would like to take up dis bug.
Assignee: nobody → hm.ashu
The idea here is to look and find data in the application that should be marked readonly in the binary so that it can be mapped in directly, rather than creating copies on the heap
sir i will work on the bug500875 now im plugin to gcc
im doing the task plugin to gcc some errors so i wil do it soon
i want some more ideas abt this bug
This JS warns if literal strings/arrays are initialized to variables that are not declared as both const and static.
Attachment #444312 - Flags: feedback?(david.humphrey)
This JS warns if literal strings/arrays are initialised to variables that are not both const and static.
Attachment #444312 - Attachment is obsolete: true
Attachment #444315 - Flags: feedback?(david.humphrey)
Attachment #444312 - Flags: feedback?(david.humphrey)
Blocks: 583074
Comment on attachment 444315 [details] Find literal strings/arrays that should be declared as both const and static and warns Apologies for losing track of this. If you're still working on it, it needs another reviewer.
Attachment #444315 - Flags: feedback?(david.humphrey)
related to bug 74803?
Product: Core → Firefox Build System
We have a bunch of checkers in particular readability-non-const-parameter at review phase: https://searchfox.org/mozilla-central/source/tools/clang-tidy/config.yaml#128
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
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: