summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cpphoverhandler.cpp
Commit message (Collapse)AuthorAgeFilesLines
* TextEditor: Return hover handler priority by callbackNikolai Kosjar2018-01-191-1/+4
| | | | | | | ...to get rid of the asynchronous code path. Change-Id: I56377510440631b0be712333b2a4018717c86389 Reviewed-by: David Schulz <david.schulz@qt.io>
* Clang: Provide tooltipsNikolai Kosjar2018-01-161-92/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This includes also the query data for the help system (F1) for an identifier under cursor. Regressions (libclang changes necessary): - Function signatures do not contain default values. - Aliases are not resolved for/at: - template types - qualified name of a type Fixes/Improvements: - Resolve "auto" - On a template type, show also the template parameter. - For a typedef like typedef long long superlong; the tooltip was "long long superlong", which was confusing. Now, "long long" is shown. New: - Show first or \brief paragraph of a documentation comment. - Show size of a class at definition. - Show size of a field member in class definition. Task-number: QTCREATORBUG-11259 Change-Id: Ie1a07930d0e882015d07dc43e35bb81a685cdeb8 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
* CppTools: Fix showing main help sentence in tooltipNikolai Kosjar2018-01-161-1/+1
| | | | | | | | | | | | | | | Mouse hover on e.g. "QString" is supposed to show QString The QString class provides... The sentence was removed unintentionally by commit a7e8406ced48818682e52ca208af94c18c8c837e TextEditor: Remove unneeded functions in BaseHoverHandler Change-Id: I356e66c0c21c528822c0f2e37f8058fa7b7d89bf Reviewed-by: David Schulz <david.schulz@qt.io>
* CppTools: Move CppHoverHandler to CppToolsNikolai Kosjar2018-01-161-0/+187
| | | | | | | | This is in preparation for clang code model to provide its own hover handler. Change-Id: Ifbdd96f427989bd5d1fbc4badb9c38108485c2f2 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* Moved the CppHoverHandler to the CppEditor pluginThorbjørn Lindeijer2008-12-161-270/+0
| | | | | It used to be in CppTools, but since the hover handler only makes sense in the context of the C++ editor, this is a better place.
* check for !docmae2008-12-121-7/+7
|
* Introduced CPlusPlus::Snapshot, it contains a snap shot of the indexer's ↵Roberto Raggi2008-12-121-2/+4
| | | | | | current state. This change removes a number of wrong usages of the CppModelManager::documents()/document().
* Implemented tooltip and lookat for #include directives.Roberto Raggi2008-12-101-0/+10
|
* Set the help id for macros to their nameThorbjørn Lindeijer2008-12-101-0/+1
| | | | Enables F1 for opening their help pages. Seems to work nicely.
* Fixed macro tooltip overriding type informationThorbjørn Lindeijer2008-12-101-10/+11
| | | | | | | The macro tooltip is supposed to be a fallback, since otherwise you won't be able to see type information for macro parameters. Reviewed-by: Roberto Raggi
* tooltip for macro definitions.Roberto Raggi2008-12-091-10/+15
|
* Fixes: - missing F1 in tooltip on first IDE startPatrick Star2008-12-041-1/+8
|
* more file cosmeticshjk2008-12-021-0/+1
|
* off-by-one in headershjk2008-12-021-1/+0
|
* end-of-line whitespace correction of the new headershjk2008-12-021-10/+11
|
* Initial importcon2008-12-021-0/+243