Bug 509752 - Hovering over an #include with "error" as the filename gives a hover for the error() function
Summary: Hovering over an #include with "error" as the filename gives a hover for the ...
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-editor (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:
Depends on:
Blocks:
 
Reported: 2016-12-29 00:40 EST by Nathan Ridge CLA
Modified: 2020-09-04 15:21 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 Nathan Ridge CLA 2016-12-29 00:40:42 EST
STR:
  1. Create a file called "error.hpp" in a project
  2. Add #include "error.hpp" to a source file
  3. Hover over the include (or press F2 with the cursor on it)

A hover with the following content appears:

=============================
Name: error
Prototype: void error (int status, int errnum, const char 
 *format, ...)
Description:
The error function can be used to report general problems 
 during program execution. The format argument is a format 
 [snip]
=============================

This hover is inappropriate in this context.