Bug 259712 - Toggle Source/Header only toggles .hpp or .h but not both
Summary: Toggle Source/Header only toggles .hpp or .h but not both
Status: ASSIGNED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-editor (show other bugs)
Version: 5.0.1   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-27 12:57 EST by Dzonatas Sol CLA
Modified: 2020-09-04 15:16 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dzonatas Sol CLA 2008-12-27 12:57:20 EST
Build ID: M20080911-1700
CDT

Steps To Reproduce:
1. Create file.cpp, file.hpp, & file.h
2. Open file.cpp in editor
3. Navigate->Toggle Source/header

Notice it opens file.h

4. Navigate->Toggle Source/header

It goes back to the file.cpp instead of file.hpp

Bug: It should also open file.hpp in the toggle loop

More information:
The 3 tier file layout .cpp/.hpp/.h is being recommended and used more by various programmers in large c++ applications. The .h files contain only the individual class specification without any implementation. The .hpp files contain the class-hierarchy specific implementation. The .cpp files contain the modular implementation. It would be nice if the "Toggle Source/Header" would toggle between each .cpp/.hpp/.h if any of them exist instead of only just two of them. Also note, if only .hpp/.h exists (without .cpp), then it should toggle between those two, too.

Thank you
Comment 1 Anton Leherbauer CLA 2009-01-07 04:37:27 EST
Marked as enhancement.
Comment 2 Nathan Ridge CLA 2017-01-15 13:04:01 EST
(In reply to Dzonatas Sol from comment #0)
> The 3 tier file layout .cpp/.hpp/.h is being recommended and used more by
> various programmers in large c++ applications. The .h files contain only the
> individual class specification without any implementation. The .hpp files
> contain the class-hierarchy specific implementation. The .cpp files contain
> the modular implementation.

This is the first I hear of this way of organizing code. Could you point me to a reference about it?