Open
Bug 1001175
(eclipse-cdt-projgen)
Opened 11 years ago
Updated 2 years ago
[meta] Eclipse C++ project generation issues
Categories
(Developer Infrastructure :: Developer Environment Integration, defect)
Developer Infrastructure
Developer Environment Integration
Tracking
(Not tracked)
NEW
People
(Reporter: botond, Unassigned)
References
(Depends on 1 open bug)
Details
(Keywords: meta)
I am trying out the Eclipse C++ project generation feature that BenWa implemented (bug 973770), and I'm running into a number of issues with it. I am going to collect these issues in this bug, and eventually file individual bugs for them and hopefully fix them.
Reporter | ||
Comment 1•11 years ago
|
||
Generated projects do not have any of the "<XXX> Built-in Compiler Settings" providers enabled. As a result, some system includes do not get processed.
Reporter | ||
Comment 2•11 years ago
|
||
Even when I manually enable a "Built-in Compiler Settings" provider, the "Command to get compiler specs" does not contain "-std=c++11" or similar, and as a result files get badly misparsed (outside of C++11 mode, MOZ_FINAL expands to '__final', which CDT does not recognize, causing CDT to fail to parse entire class definitions).
Reporter | ||
Comment 3•11 years ago
|
||
The "Mark occurrences" setting (Preferences -> C/C++ -> Editor -> Mark Occurrences" is not enabled by default.
Reporter | ||
Comment 4•11 years ago
|
||
The "Automatically update the index" and "Update index immediately after every file-save" settings (Preferences -> C/C++ -> Indexer -> Indexing strategy) are not enabled by default. These settings are critical to get accurate parsing as you're editing code. For example, if you add a new field to a class in a header file, and then write code in the cpp file that uses the new field, if these settings aren't enabled then Eclipse won't know about the new field until a full reindex.
Reporter | ||
Updated•10 years ago
|
Reporter | ||
Comment 5•10 years ago
|
||
The "Remove trailing whitespace in edited lines" save action (Preferences -> C/C++ -> Editor -> Save Actions) is not enabled by default. This setting is very useful for appeasing Those Who R- Patches For Having Trailing Whitespace.
Reporter | ||
Comment 6•10 years ago
|
||
As far as I'm aware, the workflow on B2G is to cd into your objdir and then run
path/to/gecko-source-dir/mach build-backend -b CppEclipse
We should make this a bit nicer, e.g. we should allow using the 'mach' command in the root of the b2g directory tree rather than having to cd into the objdir.
Reporter | ||
Comment 7•10 years ago
|
||
The default perspective when opening the generated project appears to be "Resource". It would be better to make it the "C/C++" perspective (the set of views in the workspace is more relevant then).
Reporter | ||
Updated•7 years ago
|
Alias: eclipse-cdt-projgen
Updated•7 years ago
|
Product: Core → Firefox Build System
Updated•7 years ago
|
Component: General → Developer Environment Integration
Updated•2 years ago
|
Product: Firefox Build System → Developer Infrastructure
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•