forked from qt-creator/qt-creator
		
	CppTools: Unexport some internal classes.
Unexports CppModelManager, CppSourceProcessor and CppToolsPlugin. Now only some constructor signatures mention "Internal::" in the exported symbols: % nm --extern-only --demangle ./lib/qtcreator/plugins/libCppTools.so | grep "Internal::" CppTools::CppClassesFilter::CppClassesFilter(CppTools::Internal::CppLocatorData*) CppTools::CppClassesFilter::CppClassesFilter(CppTools::Internal::CppLocatorData*) CppTools::CppEditorSupport::CppEditorSupport(CppTools::Internal::CppModelManager*, TextEditor::BaseTextEditor*) CppTools::CppEditorSupport::CppEditorSupport(CppTools::Internal::CppModelManager*, TextEditor::BaseTextEditor*) Change-Id: I167c21a6dc03cf02230c95fde66cf404e40df36f Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
		@@ -29,14 +29,18 @@
 | 
			
		||||
 | 
			
		||||
#include "cpptoolsreuse.h"
 | 
			
		||||
 | 
			
		||||
#include <coreplugin/editormanager/editormanager.h>
 | 
			
		||||
 | 
			
		||||
#include <cplusplus/Overview.h>
 | 
			
		||||
#include <cplusplus/LookupContext.h>
 | 
			
		||||
#include <utils/qtcassert.h>
 | 
			
		||||
 | 
			
		||||
#include <QSet>
 | 
			
		||||
#include <QTextDocument>
 | 
			
		||||
#include <QTextCursor>
 | 
			
		||||
#include <QStringRef>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
using namespace CPlusPlus;
 | 
			
		||||
 | 
			
		||||
namespace CppTools {
 | 
			
		||||
@@ -187,4 +191,13 @@ bool isQtKeyword(const QStringRef &text)
 | 
			
		||||
    return false;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void switchHeaderSource()
 | 
			
		||||
{
 | 
			
		||||
    const Core::IDocument *currentDocument = Core::EditorManager::currentDocument();
 | 
			
		||||
    QTC_ASSERT(currentDocument, return);
 | 
			
		||||
    const QString otherFile = correspondingHeaderOrSource(currentDocument->filePath());
 | 
			
		||||
    if (!otherFile.isEmpty())
 | 
			
		||||
        Core::EditorManager::openEditor(otherFile);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
} // CppTools
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user