notepad-plus-plus/scintilla/scripts/HeaderOrder.txt

181 lines
3.6 KiB
Plaintext
Raw Normal View History

// Define the standard order in which to include header files
// All platform headers should be included before Scintilla headers
// and each of these groups are then divided into directory groups.
// Base of the repository relative to this file
//base:..
// File patterns to check:
//source:include/*.h
//source:src/*.cxx
//source:lexlib/*.cxx
//source:lexers/*.cxx
//source:win32/*.cxx
//source:gtk/*.cxx
//source:cocoa/*.mm
//source:cocoa/*.h
//source:test/unit/*.cxx
//source:lexilla/src/*.cxx
//source:lexilla/test/*.cxx
// C standard library
2019-05-04 20:14:48 +02:00
#include <stddef.h>
#include <stdint.h>
// C++ wrappers of C standard library
2019-05-04 20:14:48 +02:00
#include <cstddef>
#include <cstdlib>
2019-05-04 20:14:48 +02:00
#include <cstdint>
#include <cassert>
#include <cstring>
#include <cstdio>
2019-05-04 20:14:48 +02:00
#include <cstdarg>
#include <ctime>
#include <cmath>
2019-05-04 20:14:48 +02:00
#include <climits>
// C++ standard library
#include <stdexcept>
#include <new>
#include <string>
2019-05-04 20:14:48 +02:00
#include <string_view>
#include <vector>
#include <array>
#include <map>
#include <set>
2019-05-04 20:14:48 +02:00
#include <forward_list>
#include <optional>
#include <algorithm>
2019-05-04 20:14:48 +02:00
#include <iterator>
#include <functional>
#include <memory>
2019-05-04 20:14:48 +02:00
#include <numeric>
#include <chrono>
#include <regex>
2019-05-04 20:14:48 +02:00
#include <iostream>
#include <sstream>
#include <fstream>
#include <iomanip>
#include <atomic>
#include <mutex>
#include <thread>
#include <future>
// GTK headers
#include <glib.h>
#include <gmodule.h>
#include <gdk/gdk.h>
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
2019-05-04 20:14:48 +02:00
#include <gdk/gdkwayland.h>
#include <gtk/gtk-a11y.h>
// Windows headers
#include <windows.h>
#include <commctrl.h>
#include <richedit.h>
#include <windowsx.h>
Update to Scintilla 5.3.2 and Lexilla 5.2.1 update to https://www.scintilla.org/scintilla532.zip with: Released 6 December 2022. Add SCI_REPLACETARGETMINIMAL to change text without causing unchanged prefix and suffix to be marked as modified in change history. Draw background colour for EOL annotations with standard and boxed visuals. Add SCI_GETSTYLEDTEXTFULL to support 64-bit document positions on Win32 replacing SCI_GETSTYLEDTEXT which is not safe for huge documents. Feature #1455. Send SCN_AUTOCCOMPLETED for SCI_AUTOCSHOW triggering insertion because of SCI_AUTOCSETCHOOSESINGLE mode. Feature #1459. Change 'paragraph up' commands SCI_PARAUP and SCI_PARAUPEXTEND to go to the start position of the paragraph containing the caret. Only if the caret is already at the start of the paragraph will it go to the start of the previous paragraph. Bug #2363. Change release compilation optimization option to favour speed over space. -O2 for MSVC and -O3 for gcc and clang. On Win32, avoid blurry display with DirectWrite in GDI scaling mode. Bug #2344. On Win32, use the top-level window to find the monitor for DirectWrite rendering parameters. Temporarily switch DPI awareness to find correct monitor in GDI scaling mode. Bug #2344. On Qt, implement SCI_SETRECTANGULARSELECTIONMODIFIER for all platforms. On Qt, allow string form XPM images for SCI_REGISTERIMAGE. and https://www.scintilla.org/lexilla521.zip with Released 6 December 2022. Update to Unicode 14. Feature #1461. Change default compilation optimization option to favour speed over space. -O2 for MSVC and -O3 for gcc and clang. Batch: Fix comments starting inside strings. Issue #115. F#: Lex signed numeric literals more accurately. Issue #110, Issue #111. F#: Add specifiers for 64-bit integer and floating point literals. Issue #112. Markdown: Stop styling numbers at line start in PRECHAR style. Issue #117. PowerShell: Recognise numeric literals more accurately. Issue #118. Close #12624
2022-12-10 13:35:16 +01:00
#include <shellscalingapi.h>
#include <zmouse.h>
#include <ole2.h>
#include <d2d1.h>
#include <dwrite.h>
// Cocoa headers
#include <Cocoa/Cocoa.h>
2019-05-04 20:14:48 +02:00
#import <Foundation/NSGeometry.h>
#import <QuartzCore/CAGradientLayer.h>
#import <QuartzCore/CAAnimation.h>
#import <QuartzCore/CATransaction.h>
// Scintilla headers
// Non-platform-specific headers
// Exported headers
2019-05-04 20:14:48 +02:00
#include "Sci_Position.h"
#include "ScintillaTypes.h"
#include "ScintillaMessages.h"
#include "ScintillaStructures.h"
2019-05-04 20:14:48 +02:00
#include "ILoader.h"
#include "ILexer.h"
// src platform interface
#include "Debugging.h"
#include "Geometry.h"
#include "Platform.h"
#include "Scintilla.h"
#include "ScintillaWidget.h"
// src
#include "CharacterType.h"
#include "CharacterCategoryMap.h"
2019-05-04 20:14:48 +02:00
#include "Position.h"
#include "UniqueString.h"
#include "SplitVector.h"
#include "Partitioning.h"
#include "RunStyles.h"
2019-05-04 20:14:48 +02:00
#include "SparseVector.h"
#include "ContractionState.h"
#include "ChangeHistory.h"
#include "CellBuffer.h"
Updated to Scintilla 5.4.2 & Lexilla 5.3.1 https://www.scintilla.org/scintilla542.zip Release 5.4.2 Released 5 March 2024. Significantly reduce memory used for undo actions, often to a half or quarter of previous versions. Feature #1458. Add APIs for saving and restoring undo history. For GTK, when laying out text, detect runs with both left-to-right and right-to-left ranges and divide into an ASCII prefix and more complex suffix. Lay out the ASCII prefix in the standard manner but, for the suffix, measure the whole width and spread that over the suffix bytes. This produces more usable results where the caret moves over the ASCII prefix correctly and over the suffix reasonably but not accurately. For ScintillaEdit on Qt, fix reference from ScintillaDocument to Document to match change in 5.4.1 using IDocumentEditable for SCI_GETDOCPOINTER and SCI_SETDOCPOINTER. For Direct2D on Win32, use the multi-threaded option to avoid crashes when Scintilla instances created on different threads. There may be more problems with this scenario so it should be avoided. Bug #2420. For Win32, ensure keyboard-initiated context menu appears in multi-screen situations. https://www.scintilla.org/lexilla531.zip Release 5.3.1 Released 5 March 2024. Assembler: After comments, treat \r\n line ends the same as \n. This makes testing easier. Bash: Fix folding when line changed to/from comment and previous line is comment. Issue #224. Batch: Fix handling ':' next to keywords. Issue #222. JavaScript: in cpp lexer, add lexer.cpp.backquoted.strings=2 mode to treat ` back-quoted strings as template literals which allow embedded ${expressions}. Issue #94. Python: fix lexing of rb'' and rf'' strings. Issue #223, Pull request #227. Ruby: fix lexing of methods on numeric literals like '3.times' so the '.' and method name do not appear in numeric style. Issue #225.
2024-03-06 22:05:54 +01:00
#include "UndoHistory.h"
#include "PerLine.h"
#include "CallTip.h"
#include "KeyMap.h"
#include "Indicator.h"
#include "XPM.h"
#include "LineMarker.h"
#include "Style.h"
#include "ViewStyle.h"
#include "CharClassify.h"
#include "Decoration.h"
#include "CaseFolder.h"
#include "Document.h"
2019-05-04 20:14:48 +02:00
#include "RESearch.h"
#include "CaseConvert.h"
#include "UniConversion.h"
2019-05-04 20:14:48 +02:00
#include "DBCS.h"
#include "Selection.h"
#include "PositionCache.h"
#include "EditModel.h"
#include "MarginView.h"
#include "EditView.h"
#include "Editor.h"
2019-05-04 20:14:48 +02:00
#include "ElapsedPeriod.h"
#include "AutoComplete.h"
#include "ScintillaBase.h"
// Platform-specific headers
// win32
#include "WinTypes.h"
#include "PlatWin.h"
#include "HanjaDic.h"
2019-05-04 20:14:48 +02:00
#include "ScintillaWin.h"
// gtk
#include "Wrappers.h"
2019-05-04 20:14:48 +02:00
#include "ScintillaGTK.h"
#include "scintilla-marshal.h"
#include "ScintillaGTKAccessible.h"
#include "Converter.h"
// cocoa
#include "QuartzTextStyle.h"
#include "QuartzTextStyleAttribute.h"
2019-05-04 20:14:48 +02:00
#include "QuartzTextLayout.h"
#import "InfoBarCommunicator.h"
#include "InfoBar.h"
2019-05-04 20:14:48 +02:00
#import "ScintillaView.h"
#import "ScintillaCocoa.h"
#import "PlatCocoa.h"
// Catch testing framework
#include "catch.hpp"