Bug 496448 - Modifying built-in settings provider command line does not trigger a full reindex
Summary: Modifying built-in settings provider command line does not trigger a full rei...
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: Next   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
: 510894 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-06-21 04:47 EDT by Nathan Ridge CLA
Modified: 2020-09-04 15:20 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Ridge CLA 2016-06-21 04:47:50 EDT
STR:
  1. Create a new external makefile project, containing some code
     that includes a C++11 standard library header such as <chrono>,
     and uses C++11 library features defined in it (such as 
     std::chrono::seconds).
  2. Initially, std::chrono::seconds is not resolved. This is fine,
     as the project is not yet configured to use C++11.
  3. Configure the project to use C++11, by going to Project Properties
     --> C/C++ General --> Preprocessor Paths, Includes, Macros, etc.
     --> Providers --> CDT GCC Built-in Settings Provider, and adding
     "-std=c++11" to the "command to get compiler specs".
  4. Press "Apply". This triggers a fairly short reindex.
  5. After the reindex, std::chrono::seconds is still unresolved.
  6. Now, trigger another reindex via Project -> Index -> Rebuild.
  7. Now, std::chrono::seconds is resolved.

Clearly, the reindex done by step (4) isn't a full reindex in some way. I think it should be, so that an subsequent explicit reindex isn't required.
Comment 1 Nathan Ridge CLA 2017-01-23 21:41:58 EST
*** Bug 510894 has been marked as a duplicate of this bug. ***
Comment 2 Nathan Ridge CLA 2017-01-23 21:43:34 EST
I guess cdt-build is probably not the best component for this.