-
Notifications
You must be signed in to change notification settings - Fork 846
Add Output Pane for Logs and Messages #2663
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -22,7 +23,7 @@ | |||
/** | |||
* @brief Document class for bytewise merging two files presented as hexdumps | |||
*/ | |||
class CHexMergeDoc : public CDocument, public IMergeDoc | |||
class CHexMergeDoc : public CDocument, public IMergeDoc, public IMDITab |
Check notice
Code scanning / CodeQL
Undisciplined multiple inheritance Note
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 26 days ago
To fix the problem, we need to ensure that CHexMergeDoc
conforms to the restricted form of multiple inheritance. This means:
- Inheriting from only one protected base class.
- Inheriting from multiple interfaces (pure virtual classes).
- Inheriting from multiple private implementations if needed.
In this case, we should:
- Ensure that
IMergeDoc
andIMDITab
are pure virtual classes (interfaces). - Change the inheritance of
IMergeDoc
andIMDITab
to public to indicate they are interfaces. - Ensure
CDocument
is the only class providing implementation and is inherited as protected.
-
Copy modified line R26
@@ -25,3 +25,3 @@ | ||
*/ | ||
class CHexMergeDoc : public CDocument, public IMergeDoc, public IMDITab | ||
class CHexMergeDoc : protected CDocument, public IMergeDoc, public IMDITab | ||
{ |
@@ -27,7 +28,7 @@ | |||
/** | |||
* @brief Frame class for file compare, handles panes, statusbar etc. | |||
*/ | |||
class CImgMergeFrame : public CMergeFrameCommon,public IMergeDoc | |||
class CImgMergeFrame : public CMergeFrameCommon, public IMergeDoc, public IMDITab |
Check notice
Code scanning / CodeQL
Undisciplined multiple inheritance Note
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 26 days ago
To fix the problem, we need to refactor the CImgMergeFrame
class to conform to the restricted form of multiple inheritance. This involves:
- Ensuring that the class inherits from only one protected base class.
- Inheriting from multiple interfaces (pure virtual classes) if needed.
- Using private inheritance for any implementation classes.
In this case, we can make IMergeDoc
and IMDITab
interfaces (pure virtual classes) and inherit from them publicly. We will keep CMergeFrameCommon
as the single protected base class.
-
Copy modified line R31
@@ -30,3 +30,3 @@ | ||
*/ | ||
class CImgMergeFrame : public CMergeFrameCommon, public IMergeDoc, public IMDITab | ||
class CImgMergeFrame : protected CMergeFrameCommon, public IMergeDoc, public IMDITab | ||
{ |
@@ -120,15 +121,15 @@ | |||
/** | |||
* @brief Document class for merging two files | |||
*/ | |||
class CMergeDoc : public CDocument, public IMergeDoc | |||
class CMergeDoc : public CDocument, public IMergeDoc, public IMDITab |
Check notice
Code scanning / CodeQL
Undisciplined multiple inheritance Note
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 26 days ago
To fix the problem, we need to ensure that CMergeDoc
conforms to the restricted form of multiple inheritance. This means:
- Inheriting from only one protected base class.
- Inheriting from multiple interfaces (pure virtual classes).
- Inheriting from multiple private implementations.
In this case, we can assume that IMergeDoc
and IMDITab
are interfaces (pure virtual classes). We should change the inheritance of IMDITab
to private to conform to the restricted form of multiple inheritance.
-
Copy modified line R124
@@ -123,3 +123,3 @@ | ||
*/ | ||
class CMergeDoc : public CDocument, public IMergeDoc, public IMDITab | ||
class CMergeDoc : public CDocument, public IMergeDoc, private IMDITab | ||
{ |
@@ -24,7 +25,7 @@ | |||
/** | |||
* @brief Frame class for file compare, handles panes, statusbar etc. | |||
*/ | |||
class CWebPageDiffFrame : public CMergeFrameCommon,public IMergeDoc | |||
class CWebPageDiffFrame : public CMergeFrameCommon, public IMergeDoc, public IMDITab |
Check notice
Code scanning / CodeQL
Undisciplined multiple inheritance Note
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 26 days ago
To fix the problem, we need to ensure that CWebPageDiffFrame
conforms to the restricted form of multiple inheritance. This means it should inherit from only one public/protected class and any number of pure virtual interfaces.
The best way to fix this without changing existing functionality is to:
- Identify which of the inherited classes (
CMergeFrameCommon
,IMergeDoc
,IMDITab
) are pure virtual interfaces. - Change the inheritance of
CWebPageDiffFrame
to inherit from only one public/protected class and the rest as pure virtual interfaces.
-
Copy modified line R28
@@ -27,3 +27,3 @@ | ||
*/ | ||
class CWebPageDiffFrame : public CMergeFrameCommon, public IMergeDoc, public IMDITab | ||
class CWebPageDiffFrame : public CMergeFrameCommon, public IMergeDoc, private IMDITab | ||
{ |
# Conflicts: # Src/DirActions.cpp # Src/MergeDoc.cpp # Translations/WinMerge/English.pot
@@ -26,6 +26,14 @@ | |||
#include "Path.cpp" | |||
// Hashing | |||
#include "Hash.cpp" | |||
// Logging | |||
#include "AsyncChannel.cpp" |
Check notice
Code scanning / CodeQL
Include header files only Note
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 16 days ago
To fix the problem, we need to refactor the code to include only header files. This involves creating corresponding header files for each .cpp
file included and then including these header files instead. The header files should contain the declarations of the classes, functions, and other entities defined in the .cpp
files.
- Create header files (
*.h
) for each of the.cpp
files included inFoundation.cpp
. - Move the declarations from the
.cpp
files to the corresponding header files. - Include the newly created header files in
Foundation.cpp
instead of the.cpp
files.
-
Copy modified lines R2-R15 -
Copy modified lines R17-R21 -
Copy modified lines R23-R26 -
Copy modified line R28 -
Copy modified lines R30-R36 -
Copy modified lines R38-R41 -
Copy modified lines R43-R47 -
Copy modified line R49 -
Copy modified lines R51-R60 -
Copy modified lines R62-R78 -
Copy modified lines R80-R93 -
Copy modified lines R95-R98
@@ -1,98 +1,98 @@ | ||
// Core | ||
#include "Ascii.cpp" | ||
#include "AtomicCounter.cpp" | ||
#include "Bugcheck.cpp" | ||
#include "Debugger.cpp" | ||
#include "Environment.cpp" | ||
#include "Error.cpp" | ||
#include "Exception.cpp" | ||
#include "Format.cpp" | ||
#include "NumberFormatter.cpp" | ||
#include "NumberParser.cpp" | ||
#include "NumericString.cpp" | ||
#include "RefCountedObject.cpp" | ||
#include "StringTokenizer.cpp" | ||
#include "Void.cpp" | ||
#include "Ascii.h" | ||
#include "AtomicCounter.h" | ||
#include "Bugcheck.h" | ||
#include "Debugger.h" | ||
#include "Environment.h" | ||
#include "Error.h" | ||
#include "Exception.h" | ||
#include "Format.h" | ||
#include "NumberFormatter.h" | ||
#include "NumberParser.h" | ||
#include "NumericString.h" | ||
#include "RefCountedObject.h" | ||
#include "StringTokenizer.h" | ||
#include "Void.h" | ||
// DateTime | ||
#include "Clock.cpp" | ||
#include "DateTime.cpp" | ||
#include "Stopwatch.cpp" | ||
#include "Timespan.cpp" | ||
#include "Timestamp.cpp" | ||
#include "Clock.h" | ||
#include "DateTime.h" | ||
#include "Stopwatch.h" | ||
#include "Timespan.h" | ||
#include "Timestamp.h" | ||
// Filesystem | ||
#include "DirectoryIterator.cpp" | ||
#include "File.cpp" | ||
#include "Glob.cpp" | ||
#include "Path.cpp" | ||
#include "DirectoryIterator.h" | ||
#include "File.h" | ||
#include "Glob.h" | ||
#include "Path.h" | ||
// Hashing | ||
#include "Hash.cpp" | ||
#include "Hash.h" | ||
// Logging | ||
#include "AsyncChannel.cpp" | ||
#include "Channel.cpp" | ||
#include "LogFile.cpp" | ||
#include "LoggingRegistry.cpp" | ||
#include "SimpleFileChannel.cpp" | ||
#include "Message.cpp" | ||
#include "Configurable.cpp" | ||
#include "AsyncChannel.h" | ||
#include "Channel.h" | ||
#include "LogFile.h" | ||
#include "LoggingRegistry.h" | ||
#include "SimpleFileChannel.h" | ||
#include "Message.h" | ||
#include "Configurable.h" | ||
// Notifications | ||
#include "AbstractObserver.cpp" | ||
#include "Notification.cpp" | ||
#include "NotificationCenter.cpp" | ||
#include "NotificationQueue.cpp" | ||
#include "AbstractObserver.h" | ||
#include "Notification.h" | ||
#include "NotificationCenter.h" | ||
#include "NotificationQueue.h" | ||
// Processes | ||
#include "NamedEvent.cpp" | ||
#include "Pipe.cpp" | ||
#include "PipeImpl.cpp" | ||
#include "Process.cpp" | ||
#include "SharedMemory.cpp" | ||
#include "NamedEvent.h" | ||
#include "Pipe.h" | ||
#include "PipeImpl.h" | ||
#include "Process.h" | ||
#include "SharedMemory.h" | ||
// RegularExpression | ||
#include "RegularExpression.cpp" | ||
#include "RegularExpression.h" | ||
// Streams | ||
#include "Base64Decoder.cpp" | ||
#include "Base64Encoder.cpp" | ||
#include "BinaryReader.cpp" | ||
#include "BinaryWriter.cpp" | ||
#include "FileStream.cpp" | ||
#include "MemoryStream.cpp" | ||
#include "NullStream.cpp" | ||
#include "Random.cpp" | ||
#include "RandomStream.cpp" | ||
#include "StreamCopier.cpp" | ||
#include "Base64Decoder.h" | ||
#include "Base64Encoder.h" | ||
#include "BinaryReader.h" | ||
#include "BinaryWriter.h" | ||
#include "FileStream.h" | ||
#include "MemoryStream.h" | ||
#include "NullStream.h" | ||
#include "Random.h" | ||
#include "RandomStream.h" | ||
#include "StreamCopier.h" | ||
// Text | ||
#include "ASCIIEncoding.cpp" | ||
#include "Latin1Encoding.cpp" | ||
#include "Latin2Encoding.cpp" | ||
#include "Latin9Encoding.cpp" | ||
#include "StreamConverter.cpp" | ||
#include "TextBufferIterator.cpp" | ||
#include "TextConverter.cpp" | ||
#include "TextEncoding.cpp" | ||
#include "TextIterator.cpp" | ||
#include "Unicode.cpp" | ||
#include "UnicodeConverter.cpp" | ||
#include "UTF8Encoding.cpp" | ||
#include "UTF16Encoding.cpp" | ||
#include "UTF32Encoding.cpp" | ||
#include "Windows1250Encoding.cpp" | ||
#include "Windows1251Encoding.cpp" | ||
#include "Windows1252Encoding.cpp" | ||
#include "ASCIIEncoding.h" | ||
#include "Latin1Encoding.h" | ||
#include "Latin2Encoding.h" | ||
#include "Latin9Encoding.h" | ||
#include "StreamConverter.h" | ||
#include "TextBufferIterator.h" | ||
#include "TextConverter.h" | ||
#include "TextEncoding.h" | ||
#include "TextIterator.h" | ||
#include "Unicode.h" | ||
#include "UnicodeConverter.h" | ||
#include "UTF8Encoding.h" | ||
#include "UTF16Encoding.h" | ||
#include "UTF32Encoding.h" | ||
#include "Windows1250Encoding.h" | ||
#include "Windows1251Encoding.h" | ||
#include "Windows1252Encoding.h" | ||
// Threading | ||
#include "ActiveDispatcher.cpp" | ||
#include "Condition.cpp" | ||
#include "ErrorHandler.cpp" | ||
#include "Event.cpp" | ||
#include "Mutex.cpp" | ||
#include "Runnable.cpp" | ||
#include "RWLock.cpp" | ||
#include "Semaphore.cpp" | ||
#include "SynchronizedObject.cpp" | ||
#include "Thread.cpp" | ||
#include "ThreadLocal.cpp" | ||
#include "ThreadPool.cpp" | ||
#include "ThreadTarget.cpp" | ||
#include "Timer.cpp" | ||
#include "ActiveDispatcher.h" | ||
#include "Condition.h" | ||
#include "ErrorHandler.h" | ||
#include "Event.h" | ||
#include "Mutex.h" | ||
#include "Runnable.h" | ||
#include "RWLock.h" | ||
#include "Semaphore.h" | ||
#include "SynchronizedObject.h" | ||
#include "Thread.h" | ||
#include "ThreadLocal.h" | ||
#include "ThreadPool.h" | ||
#include "ThreadTarget.h" | ||
#include "Timer.h" | ||
// URI | ||
#include "FileStreamFactory.cpp" | ||
#include "URI.cpp" | ||
#include "URIStreamFactory.cpp" | ||
#include "URIStreamOpener.cpp" | ||
#include "FileStreamFactory.h" | ||
#include "URI.h" | ||
#include "URIStreamFactory.h" | ||
#include "URIStreamOpener.h" |
@@ -26,6 +26,14 @@ | |||
#include "Path.cpp" | |||
// Hashing | |||
#include "Hash.cpp" | |||
// Logging | |||
#include "AsyncChannel.cpp" | |||
#include "Channel.cpp" |
Check notice
Code scanning / CodeQL
Include header files only Note
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 16 days ago
To fix the problem, we need to refactor the code to include only header files. This involves the following steps:
- Create corresponding header files (
*.h
) for each of the included.cpp
files if they do not already exist. - Move the declarations (class declarations, function prototypes, etc.) from the
.cpp
files to the newly created header files. - Ensure that the
.cpp
files include their corresponding header files. - Replace the
#include
directives for the.cpp
files inFoundation.cpp
with#include
directives for the corresponding header files.
-
Copy modified lines R2-R15 -
Copy modified lines R17-R21 -
Copy modified lines R23-R26 -
Copy modified line R28 -
Copy modified lines R30-R36 -
Copy modified lines R38-R41 -
Copy modified lines R43-R47 -
Copy modified line R49 -
Copy modified lines R51-R60 -
Copy modified lines R62-R78 -
Copy modified lines R80-R93 -
Copy modified lines R95-R98
@@ -1,98 +1,98 @@ | ||
// Core | ||
#include "Ascii.cpp" | ||
#include "AtomicCounter.cpp" | ||
#include "Bugcheck.cpp" | ||
#include "Debugger.cpp" | ||
#include "Environment.cpp" | ||
#include "Error.cpp" | ||
#include "Exception.cpp" | ||
#include "Format.cpp" | ||
#include "NumberFormatter.cpp" | ||
#include "NumberParser.cpp" | ||
#include "NumericString.cpp" | ||
#include "RefCountedObject.cpp" | ||
#include "StringTokenizer.cpp" | ||
#include "Void.cpp" | ||
#include "Ascii.h" | ||
#include "AtomicCounter.h" | ||
#include "Bugcheck.h" | ||
#include "Debugger.h" | ||
#include "Environment.h" | ||
#include "Error.h" | ||
#include "Exception.h" | ||
#include "Format.h" | ||
#include "NumberFormatter.h" | ||
#include "NumberParser.h" | ||
#include "NumericString.h" | ||
#include "RefCountedObject.h" | ||
#include "StringTokenizer.h" | ||
#include "Void.h" | ||
// DateTime | ||
#include "Clock.cpp" | ||
#include "DateTime.cpp" | ||
#include "Stopwatch.cpp" | ||
#include "Timespan.cpp" | ||
#include "Timestamp.cpp" | ||
#include "Clock.h" | ||
#include "DateTime.h" | ||
#include "Stopwatch.h" | ||
#include "Timespan.h" | ||
#include "Timestamp.h" | ||
// Filesystem | ||
#include "DirectoryIterator.cpp" | ||
#include "File.cpp" | ||
#include "Glob.cpp" | ||
#include "Path.cpp" | ||
#include "DirectoryIterator.h" | ||
#include "File.h" | ||
#include "Glob.h" | ||
#include "Path.h" | ||
// Hashing | ||
#include "Hash.cpp" | ||
#include "Hash.h" | ||
// Logging | ||
#include "AsyncChannel.cpp" | ||
#include "Channel.cpp" | ||
#include "LogFile.cpp" | ||
#include "LoggingRegistry.cpp" | ||
#include "SimpleFileChannel.cpp" | ||
#include "Message.cpp" | ||
#include "Configurable.cpp" | ||
#include "AsyncChannel.h" | ||
#include "Channel.h" | ||
#include "LogFile.h" | ||
#include "LoggingRegistry.h" | ||
#include "SimpleFileChannel.h" | ||
#include "Message.h" | ||
#include "Configurable.h" | ||
// Notifications | ||
#include "AbstractObserver.cpp" | ||
#include "Notification.cpp" | ||
#include "NotificationCenter.cpp" | ||
#include "NotificationQueue.cpp" | ||
#include "AbstractObserver.h" | ||
#include "Notification.h" | ||
#include "NotificationCenter.h" | ||
#include "NotificationQueue.h" | ||
// Processes | ||
#include "NamedEvent.cpp" | ||
#include "Pipe.cpp" | ||
#include "PipeImpl.cpp" | ||
#include "Process.cpp" | ||
#include "SharedMemory.cpp" | ||
#include "NamedEvent.h" | ||
#include "Pipe.h" | ||
#include "PipeImpl.h" | ||
#include "Process.h" | ||
#include "SharedMemory.h" | ||
// RegularExpression | ||
#include "RegularExpression.cpp" | ||
#include "RegularExpression.h" | ||
// Streams | ||
#include "Base64Decoder.cpp" | ||
#include "Base64Encoder.cpp" | ||
#include "BinaryReader.cpp" | ||
#include "BinaryWriter.cpp" | ||
#include "FileStream.cpp" | ||
#include "MemoryStream.cpp" | ||
#include "NullStream.cpp" | ||
#include "Random.cpp" | ||
#include "RandomStream.cpp" | ||
#include "StreamCopier.cpp" | ||
#include "Base64Decoder.h" | ||
#include "Base64Encoder.h" | ||
#include "BinaryReader.h" | ||
#include "BinaryWriter.h" | ||
#include "FileStream.h" | ||
#include "MemoryStream.h" | ||
#include "NullStream.h" | ||
#include "Random.h" | ||
#include "RandomStream.h" | ||
#include "StreamCopier.h" | ||
// Text | ||
#include "ASCIIEncoding.cpp" | ||
#include "Latin1Encoding.cpp" | ||
#include "Latin2Encoding.cpp" | ||
#include "Latin9Encoding.cpp" | ||
#include "StreamConverter.cpp" | ||
#include "TextBufferIterator.cpp" | ||
#include "TextConverter.cpp" | ||
#include "TextEncoding.cpp" | ||
#include "TextIterator.cpp" | ||
#include "Unicode.cpp" | ||
#include "UnicodeConverter.cpp" | ||
#include "UTF8Encoding.cpp" | ||
#include "UTF16Encoding.cpp" | ||
#include "UTF32Encoding.cpp" | ||
#include "Windows1250Encoding.cpp" | ||
#include "Windows1251Encoding.cpp" | ||
#include "Windows1252Encoding.cpp" | ||
#include "ASCIIEncoding.h" | ||
#include "Latin1Encoding.h" | ||
#include "Latin2Encoding.h" | ||
#include "Latin9Encoding.h" | ||
#include "StreamConverter.h" | ||
#include "TextBufferIterator.h" | ||
#include "TextConverter.h" | ||
#include "TextEncoding.h" | ||
#include "TextIterator.h" | ||
#include "Unicode.h" | ||
#include "UnicodeConverter.h" | ||
#include "UTF8Encoding.h" | ||
#include "UTF16Encoding.h" | ||
#include "UTF32Encoding.h" | ||
#include "Windows1250Encoding.h" | ||
#include "Windows1251Encoding.h" | ||
#include "Windows1252Encoding.h" | ||
// Threading | ||
#include "ActiveDispatcher.cpp" | ||
#include "Condition.cpp" | ||
#include "ErrorHandler.cpp" | ||
#include "Event.cpp" | ||
#include "Mutex.cpp" | ||
#include "Runnable.cpp" | ||
#include "RWLock.cpp" | ||
#include "Semaphore.cpp" | ||
#include "SynchronizedObject.cpp" | ||
#include "Thread.cpp" | ||
#include "ThreadLocal.cpp" | ||
#include "ThreadPool.cpp" | ||
#include "ThreadTarget.cpp" | ||
#include "Timer.cpp" | ||
#include "ActiveDispatcher.h" | ||
#include "Condition.h" | ||
#include "ErrorHandler.h" | ||
#include "Event.h" | ||
#include "Mutex.h" | ||
#include "Runnable.h" | ||
#include "RWLock.h" | ||
#include "Semaphore.h" | ||
#include "SynchronizedObject.h" | ||
#include "Thread.h" | ||
#include "ThreadLocal.h" | ||
#include "ThreadPool.h" | ||
#include "ThreadTarget.h" | ||
#include "Timer.h" | ||
// URI | ||
#include "FileStreamFactory.cpp" | ||
#include "URI.cpp" | ||
#include "URIStreamFactory.cpp" | ||
#include "URIStreamOpener.cpp" | ||
#include "FileStreamFactory.h" | ||
#include "URI.h" | ||
#include "URIStreamFactory.h" | ||
#include "URIStreamOpener.h" |
// Logging | ||
#include "AsyncChannel.cpp" | ||
#include "Channel.cpp" | ||
#include "LogFile.cpp" |
Check notice
Code scanning / CodeQL
Include header files only Note
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 16 days ago
To fix the problem, we need to refactor the code to include only header files. This involves:
- Creating corresponding header files (
.h
or.hpp
) for each of the.cpp
files included. - Moving the class declarations and function prototypes to these header files.
- Ensuring that the
.cpp
files include their corresponding header files. - Updating the
Foundation.cpp
file to include the new header files instead of the.cpp
files.
-
Copy modified lines R2-R15 -
Copy modified lines R17-R21 -
Copy modified lines R23-R26 -
Copy modified line R28 -
Copy modified lines R30-R36 -
Copy modified lines R38-R41 -
Copy modified lines R43-R47 -
Copy modified line R49 -
Copy modified lines R51-R60 -
Copy modified lines R62-R78 -
Copy modified lines R80-R93 -
Copy modified lines R95-R98
@@ -1,98 +1,98 @@ | ||
// Core | ||
#include "Ascii.cpp" | ||
#include "AtomicCounter.cpp" | ||
#include "Bugcheck.cpp" | ||
#include "Debugger.cpp" | ||
#include "Environment.cpp" | ||
#include "Error.cpp" | ||
#include "Exception.cpp" | ||
#include "Format.cpp" | ||
#include "NumberFormatter.cpp" | ||
#include "NumberParser.cpp" | ||
#include "NumericString.cpp" | ||
#include "RefCountedObject.cpp" | ||
#include "StringTokenizer.cpp" | ||
#include "Void.cpp" | ||
#include "Ascii.h" | ||
#include "AtomicCounter.h" | ||
#include "Bugcheck.h" | ||
#include "Debugger.h" | ||
#include "Environment.h" | ||
#include "Error.h" | ||
#include "Exception.h" | ||
#include "Format.h" | ||
#include "NumberFormatter.h" | ||
#include "NumberParser.h" | ||
#include "NumericString.h" | ||
#include "RefCountedObject.h" | ||
#include "StringTokenizer.h" | ||
#include "Void.h" | ||
// DateTime | ||
#include "Clock.cpp" | ||
#include "DateTime.cpp" | ||
#include "Stopwatch.cpp" | ||
#include "Timespan.cpp" | ||
#include "Timestamp.cpp" | ||
#include "Clock.h" | ||
#include "DateTime.h" | ||
#include "Stopwatch.h" | ||
#include "Timespan.h" | ||
#include "Timestamp.h" | ||
// Filesystem | ||
#include "DirectoryIterator.cpp" | ||
#include "File.cpp" | ||
#include "Glob.cpp" | ||
#include "Path.cpp" | ||
#include "DirectoryIterator.h" | ||
#include "File.h" | ||
#include "Glob.h" | ||
#include "Path.h" | ||
// Hashing | ||
#include "Hash.cpp" | ||
#include "Hash.h" | ||
// Logging | ||
#include "AsyncChannel.cpp" | ||
#include "Channel.cpp" | ||
#include "LogFile.cpp" | ||
#include "LoggingRegistry.cpp" | ||
#include "SimpleFileChannel.cpp" | ||
#include "Message.cpp" | ||
#include "Configurable.cpp" | ||
#include "AsyncChannel.h" | ||
#include "Channel.h" | ||
#include "LogFile.h" | ||
#include "LoggingRegistry.h" | ||
#include "SimpleFileChannel.h" | ||
#include "Message.h" | ||
#include "Configurable.h" | ||
// Notifications | ||
#include "AbstractObserver.cpp" | ||
#include "Notification.cpp" | ||
#include "NotificationCenter.cpp" | ||
#include "NotificationQueue.cpp" | ||
#include "AbstractObserver.h" | ||
#include "Notification.h" | ||
#include "NotificationCenter.h" | ||
#include "NotificationQueue.h" | ||
// Processes | ||
#include "NamedEvent.cpp" | ||
#include "Pipe.cpp" | ||
#include "PipeImpl.cpp" | ||
#include "Process.cpp" | ||
#include "SharedMemory.cpp" | ||
#include "NamedEvent.h" | ||
#include "Pipe.h" | ||
#include "PipeImpl.h" | ||
#include "Process.h" | ||
#include "SharedMemory.h" | ||
// RegularExpression | ||
#include "RegularExpression.cpp" | ||
#include "RegularExpression.h" | ||
// Streams | ||
#include "Base64Decoder.cpp" | ||
#include "Base64Encoder.cpp" | ||
#include "BinaryReader.cpp" | ||
#include "BinaryWriter.cpp" | ||
#include "FileStream.cpp" | ||
#include "MemoryStream.cpp" | ||
#include "NullStream.cpp" | ||
#include "Random.cpp" | ||
#include "RandomStream.cpp" | ||
#include "StreamCopier.cpp" | ||
#include "Base64Decoder.h" | ||
#include "Base64Encoder.h" | ||
#include "BinaryReader.h" | ||
#include "BinaryWriter.h" | ||
#include "FileStream.h" | ||
#include "MemoryStream.h" | ||
#include "NullStream.h" | ||
#include "Random.h" | ||
#include "RandomStream.h" | ||
#include "StreamCopier.h" | ||
// Text | ||
#include "ASCIIEncoding.cpp" | ||
#include "Latin1Encoding.cpp" | ||
#include "Latin2Encoding.cpp" | ||
#include "Latin9Encoding.cpp" | ||
#include "StreamConverter.cpp" | ||
#include "TextBufferIterator.cpp" | ||
#include "TextConverter.cpp" | ||
#include "TextEncoding.cpp" | ||
#include "TextIterator.cpp" | ||
#include "Unicode.cpp" | ||
#include "UnicodeConverter.cpp" | ||
#include "UTF8Encoding.cpp" | ||
#include "UTF16Encoding.cpp" | ||
#include "UTF32Encoding.cpp" | ||
#include "Windows1250Encoding.cpp" | ||
#include "Windows1251Encoding.cpp" | ||
#include "Windows1252Encoding.cpp" | ||
#include "ASCIIEncoding.h" | ||
#include "Latin1Encoding.h" | ||
#include "Latin2Encoding.h" | ||
#include "Latin9Encoding.h" | ||
#include "StreamConverter.h" | ||
#include "TextBufferIterator.h" | ||
#include "TextConverter.h" | ||
#include "TextEncoding.h" | ||
#include "TextIterator.h" | ||
#include "Unicode.h" | ||
#include "UnicodeConverter.h" | ||
#include "UTF8Encoding.h" | ||
#include "UTF16Encoding.h" | ||
#include "UTF32Encoding.h" | ||
#include "Windows1250Encoding.h" | ||
#include "Windows1251Encoding.h" | ||
#include "Windows1252Encoding.h" | ||
// Threading | ||
#include "ActiveDispatcher.cpp" | ||
#include "Condition.cpp" | ||
#include "ErrorHandler.cpp" | ||
#include "Event.cpp" | ||
#include "Mutex.cpp" | ||
#include "Runnable.cpp" | ||
#include "RWLock.cpp" | ||
#include "Semaphore.cpp" | ||
#include "SynchronizedObject.cpp" | ||
#include "Thread.cpp" | ||
#include "ThreadLocal.cpp" | ||
#include "ThreadPool.cpp" | ||
#include "ThreadTarget.cpp" | ||
#include "Timer.cpp" | ||
#include "ActiveDispatcher.h" | ||
#include "Condition.h" | ||
#include "ErrorHandler.h" | ||
#include "Event.h" | ||
#include "Mutex.h" | ||
#include "Runnable.h" | ||
#include "RWLock.h" | ||
#include "Semaphore.h" | ||
#include "SynchronizedObject.h" | ||
#include "Thread.h" | ||
#include "ThreadLocal.h" | ||
#include "ThreadPool.h" | ||
#include "ThreadTarget.h" | ||
#include "Timer.h" | ||
// URI | ||
#include "FileStreamFactory.cpp" | ||
#include "URI.cpp" | ||
#include "URIStreamFactory.cpp" | ||
#include "URIStreamOpener.cpp" | ||
#include "FileStreamFactory.h" | ||
#include "URI.h" | ||
#include "URIStreamFactory.h" | ||
#include "URIStreamOpener.h" |
#include "AsyncChannel.cpp" | ||
#include "Channel.cpp" | ||
#include "LogFile.cpp" | ||
#include "LoggingRegistry.cpp" |
Check notice
Code scanning / CodeQL
Include header files only Note
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 16 days ago
To fix the problem, we need to refactor the code to include only header files. This involves:
- Creating corresponding header files (
.h
or.hpp
) for each of the.cpp
files included. - Moving the declarations of classes, functions, and other necessary elements to these header files.
- Including these header files in the
Foundation.cpp
file instead of the.cpp
files.
-
Copy modified lines R2-R15 -
Copy modified lines R17-R21 -
Copy modified lines R23-R26 -
Copy modified line R28 -
Copy modified lines R30-R36 -
Copy modified lines R38-R41 -
Copy modified lines R43-R47 -
Copy modified line R49 -
Copy modified lines R51-R60 -
Copy modified lines R62-R78 -
Copy modified lines R80-R93 -
Copy modified lines R95-R98
@@ -1,98 +1,98 @@ | ||
// Core | ||
#include "Ascii.cpp" | ||
#include "AtomicCounter.cpp" | ||
#include "Bugcheck.cpp" | ||
#include "Debugger.cpp" | ||
#include "Environment.cpp" | ||
#include "Error.cpp" | ||
#include "Exception.cpp" | ||
#include "Format.cpp" | ||
#include "NumberFormatter.cpp" | ||
#include "NumberParser.cpp" | ||
#include "NumericString.cpp" | ||
#include "RefCountedObject.cpp" | ||
#include "StringTokenizer.cpp" | ||
#include "Void.cpp" | ||
#include "Ascii.h" | ||
#include "AtomicCounter.h" | ||
#include "Bugcheck.h" | ||
#include "Debugger.h" | ||
#include "Environment.h" | ||
#include "Error.h" | ||
#include "Exception.h" | ||
#include "Format.h" | ||
#include "NumberFormatter.h" | ||
#include "NumberParser.h" | ||
#include "NumericString.h" | ||
#include "RefCountedObject.h" | ||
#include "StringTokenizer.h" | ||
#include "Void.h" | ||
// DateTime | ||
#include "Clock.cpp" | ||
#include "DateTime.cpp" | ||
#include "Stopwatch.cpp" | ||
#include "Timespan.cpp" | ||
#include "Timestamp.cpp" | ||
#include "Clock.h" | ||
#include "DateTime.h" | ||
#include "Stopwatch.h" | ||
#include "Timespan.h" | ||
#include "Timestamp.h" | ||
// Filesystem | ||
#include "DirectoryIterator.cpp" | ||
#include "File.cpp" | ||
#include "Glob.cpp" | ||
#include "Path.cpp" | ||
#include "DirectoryIterator.h" | ||
#include "File.h" | ||
#include "Glob.h" | ||
#include "Path.h" | ||
// Hashing | ||
#include "Hash.cpp" | ||
#include "Hash.h" | ||
// Logging | ||
#include "AsyncChannel.cpp" | ||
#include "Channel.cpp" | ||
#include "LogFile.cpp" | ||
#include "LoggingRegistry.cpp" | ||
#include "SimpleFileChannel.cpp" | ||
#include "Message.cpp" | ||
#include "Configurable.cpp" | ||
#include "AsyncChannel.h" | ||
#include "Channel.h" | ||
#include "LogFile.h" | ||
#include "LoggingRegistry.h" | ||
#include "SimpleFileChannel.h" | ||
#include "Message.h" | ||
#include "Configurable.h" | ||
// Notifications | ||
#include "AbstractObserver.cpp" | ||
#include "Notification.cpp" | ||
#include "NotificationCenter.cpp" | ||
#include "NotificationQueue.cpp" | ||
#include "AbstractObserver.h" | ||
#include "Notification.h" | ||
#include "NotificationCenter.h" | ||
#include "NotificationQueue.h" | ||
// Processes | ||
#include "NamedEvent.cpp" | ||
#include "Pipe.cpp" | ||
#include "PipeImpl.cpp" | ||
#include "Process.cpp" | ||
#include "SharedMemory.cpp" | ||
#include "NamedEvent.h" | ||
#include "Pipe.h" | ||
#include "PipeImpl.h" | ||
#include "Process.h" | ||
#include "SharedMemory.h" | ||
// RegularExpression | ||
#include "RegularExpression.cpp" | ||
#include "RegularExpression.h" | ||
// Streams | ||
#include "Base64Decoder.cpp" | ||
#include "Base64Encoder.cpp" | ||
#include "BinaryReader.cpp" | ||
#include "BinaryWriter.cpp" | ||
#include "FileStream.cpp" | ||
#include "MemoryStream.cpp" | ||
#include "NullStream.cpp" | ||
#include "Random.cpp" | ||
#include "RandomStream.cpp" | ||
#include "StreamCopier.cpp" | ||
#include "Base64Decoder.h" | ||
#include "Base64Encoder.h" | ||
#include "BinaryReader.h" | ||
#include "BinaryWriter.h" | ||
#include "FileStream.h" | ||
#include "MemoryStream.h" | ||
#include "NullStream.h" | ||
#include "Random.h" | ||
#include "RandomStream.h" | ||
#include "StreamCopier.h" | ||
// Text | ||
#include "ASCIIEncoding.cpp" | ||
#include "Latin1Encoding.cpp" | ||
#include "Latin2Encoding.cpp" | ||
#include "Latin9Encoding.cpp" | ||
#include "StreamConverter.cpp" | ||
#include "TextBufferIterator.cpp" | ||
#include "TextConverter.cpp" | ||
#include "TextEncoding.cpp" | ||
#include "TextIterator.cpp" | ||
#include "Unicode.cpp" | ||
#include "UnicodeConverter.cpp" | ||
#include "UTF8Encoding.cpp" | ||
#include "UTF16Encoding.cpp" | ||
#include "UTF32Encoding.cpp" | ||
#include "Windows1250Encoding.cpp" | ||
#include "Windows1251Encoding.cpp" | ||
#include "Windows1252Encoding.cpp" | ||
#include "ASCIIEncoding.h" | ||
#include "Latin1Encoding.h" | ||
#include "Latin2Encoding.h" | ||
#include "Latin9Encoding.h" | ||
#include "StreamConverter.h" | ||
#include "TextBufferIterator.h" | ||
#include "TextConverter.h" | ||
#include "TextEncoding.h" | ||
#include "TextIterator.h" | ||
#include "Unicode.h" | ||
#include "UnicodeConverter.h" | ||
#include "UTF8Encoding.h" | ||
#include "UTF16Encoding.h" | ||
#include "UTF32Encoding.h" | ||
#include "Windows1250Encoding.h" | ||
#include "Windows1251Encoding.h" | ||
#include "Windows1252Encoding.h" | ||
// Threading | ||
#include "ActiveDispatcher.cpp" | ||
#include "Condition.cpp" | ||
#include "ErrorHandler.cpp" | ||
#include "Event.cpp" | ||
#include "Mutex.cpp" | ||
#include "Runnable.cpp" | ||
#include "RWLock.cpp" | ||
#include "Semaphore.cpp" | ||
#include "SynchronizedObject.cpp" | ||
#include "Thread.cpp" | ||
#include "ThreadLocal.cpp" | ||
#include "ThreadPool.cpp" | ||
#include "ThreadTarget.cpp" | ||
#include "Timer.cpp" | ||
#include "ActiveDispatcher.h" | ||
#include "Condition.h" | ||
#include "ErrorHandler.h" | ||
#include "Event.h" | ||
#include "Mutex.h" | ||
#include "Runnable.h" | ||
#include "RWLock.h" | ||
#include "Semaphore.h" | ||
#include "SynchronizedObject.h" | ||
#include "Thread.h" | ||
#include "ThreadLocal.h" | ||
#include "ThreadPool.h" | ||
#include "ThreadTarget.h" | ||
#include "Timer.h" | ||
// URI | ||
#include "FileStreamFactory.cpp" | ||
#include "URI.cpp" | ||
#include "URIStreamFactory.cpp" | ||
#include "URIStreamOpener.cpp" | ||
#include "FileStreamFactory.h" | ||
#include "URI.h" | ||
#include "URIStreamFactory.h" | ||
#include "URIStreamOpener.h" |
#include "Channel.cpp" | ||
#include "LogFile.cpp" | ||
#include "LoggingRegistry.cpp" | ||
#include "SimpleFileChannel.cpp" |
Check notice
Code scanning / CodeQL
Include header files only Note
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 16 days ago
To fix the problem, we need to refactor the code to include only header files. This involves creating header files for each of the .cpp
files included and then including these header files instead. The header files should contain the declarations of the classes and functions, while the .cpp
files should contain the definitions.
- Create a header file for each
.cpp
file included inFoundation.cpp
. - Move the declarations from the
.cpp
files to the corresponding header files. - Replace the
#include
directives inFoundation.cpp
to include the new header files instead of the.cpp
files.
-
Copy modified lines R2-R15 -
Copy modified lines R17-R21 -
Copy modified lines R23-R26 -
Copy modified line R28 -
Copy modified lines R30-R36 -
Copy modified lines R38-R41 -
Copy modified lines R43-R47 -
Copy modified line R49 -
Copy modified lines R51-R60 -
Copy modified lines R62-R78 -
Copy modified lines R80-R93 -
Copy modified lines R95-R98
@@ -1,98 +1,98 @@ | ||
// Core | ||
#include "Ascii.cpp" | ||
#include "AtomicCounter.cpp" | ||
#include "Bugcheck.cpp" | ||
#include "Debugger.cpp" | ||
#include "Environment.cpp" | ||
#include "Error.cpp" | ||
#include "Exception.cpp" | ||
#include "Format.cpp" | ||
#include "NumberFormatter.cpp" | ||
#include "NumberParser.cpp" | ||
#include "NumericString.cpp" | ||
#include "RefCountedObject.cpp" | ||
#include "StringTokenizer.cpp" | ||
#include "Void.cpp" | ||
#include "Ascii.h" | ||
#include "AtomicCounter.h" | ||
#include "Bugcheck.h" | ||
#include "Debugger.h" | ||
#include "Environment.h" | ||
#include "Error.h" | ||
#include "Exception.h" | ||
#include "Format.h" | ||
#include "NumberFormatter.h" | ||
#include "NumberParser.h" | ||
#include "NumericString.h" | ||
#include "RefCountedObject.h" | ||
#include "StringTokenizer.h" | ||
#include "Void.h" | ||
// DateTime | ||
#include "Clock.cpp" | ||
#include "DateTime.cpp" | ||
#include "Stopwatch.cpp" | ||
#include "Timespan.cpp" | ||
#include "Timestamp.cpp" | ||
#include "Clock.h" | ||
#include "DateTime.h" | ||
#include "Stopwatch.h" | ||
#include "Timespan.h" | ||
#include "Timestamp.h" | ||
// Filesystem | ||
#include "DirectoryIterator.cpp" | ||
#include "File.cpp" | ||
#include "Glob.cpp" | ||
#include "Path.cpp" | ||
#include "DirectoryIterator.h" | ||
#include "File.h" | ||
#include "Glob.h" | ||
#include "Path.h" | ||
// Hashing | ||
#include "Hash.cpp" | ||
#include "Hash.h" | ||
// Logging | ||
#include "AsyncChannel.cpp" | ||
#include "Channel.cpp" | ||
#include "LogFile.cpp" | ||
#include "LoggingRegistry.cpp" | ||
#include "SimpleFileChannel.cpp" | ||
#include "Message.cpp" | ||
#include "Configurable.cpp" | ||
#include "AsyncChannel.h" | ||
#include "Channel.h" | ||
#include "LogFile.h" | ||
#include "LoggingRegistry.h" | ||
#include "SimpleFileChannel.h" | ||
#include "Message.h" | ||
#include "Configurable.h" | ||
// Notifications | ||
#include "AbstractObserver.cpp" | ||
#include "Notification.cpp" | ||
#include "NotificationCenter.cpp" | ||
#include "NotificationQueue.cpp" | ||
#include "AbstractObserver.h" | ||
#include "Notification.h" | ||
#include "NotificationCenter.h" | ||
#include "NotificationQueue.h" | ||
// Processes | ||
#include "NamedEvent.cpp" | ||
#include "Pipe.cpp" | ||
#include "PipeImpl.cpp" | ||
#include "Process.cpp" | ||
#include "SharedMemory.cpp" | ||
#include "NamedEvent.h" | ||
#include "Pipe.h" | ||
#include "PipeImpl.h" | ||
#include "Process.h" | ||
#include "SharedMemory.h" | ||
// RegularExpression | ||
#include "RegularExpression.cpp" | ||
#include "RegularExpression.h" | ||
// Streams | ||
#include "Base64Decoder.cpp" | ||
#include "Base64Encoder.cpp" | ||
#include "BinaryReader.cpp" | ||
#include "BinaryWriter.cpp" | ||
#include "FileStream.cpp" | ||
#include "MemoryStream.cpp" | ||
#include "NullStream.cpp" | ||
#include "Random.cpp" | ||
#include "RandomStream.cpp" | ||
#include "StreamCopier.cpp" | ||
#include "Base64Decoder.h" | ||
#include "Base64Encoder.h" | ||
#include "BinaryReader.h" | ||
#include "BinaryWriter.h" | ||
#include "FileStream.h" | ||
#include "MemoryStream.h" | ||
#include "NullStream.h" | ||
#include "Random.h" | ||
#include "RandomStream.h" | ||
#include "StreamCopier.h" | ||
// Text | ||
#include "ASCIIEncoding.cpp" | ||
#include "Latin1Encoding.cpp" | ||
#include "Latin2Encoding.cpp" | ||
#include "Latin9Encoding.cpp" | ||
#include "StreamConverter.cpp" | ||
#include "TextBufferIterator.cpp" | ||
#include "TextConverter.cpp" | ||
#include "TextEncoding.cpp" | ||
#include "TextIterator.cpp" | ||
#include "Unicode.cpp" | ||
#include "UnicodeConverter.cpp" | ||
#include "UTF8Encoding.cpp" | ||
#include "UTF16Encoding.cpp" | ||
#include "UTF32Encoding.cpp" | ||
#include "Windows1250Encoding.cpp" | ||
#include "Windows1251Encoding.cpp" | ||
#include "Windows1252Encoding.cpp" | ||
#include "ASCIIEncoding.h" | ||
#include "Latin1Encoding.h" | ||
#include "Latin2Encoding.h" | ||
#include "Latin9Encoding.h" | ||
#include "StreamConverter.h" | ||
#include "TextBufferIterator.h" | ||
#include "TextConverter.h" | ||
#include "TextEncoding.h" | ||
#include "TextIterator.h" | ||
#include "Unicode.h" | ||
#include "UnicodeConverter.h" | ||
#include "UTF8Encoding.h" | ||
#include "UTF16Encoding.h" | ||
#include "UTF32Encoding.h" | ||
#include "Windows1250Encoding.h" | ||
#include "Windows1251Encoding.h" | ||
#include "Windows1252Encoding.h" | ||
// Threading | ||
#include "ActiveDispatcher.cpp" | ||
#include "Condition.cpp" | ||
#include "ErrorHandler.cpp" | ||
#include "Event.cpp" | ||
#include "Mutex.cpp" | ||
#include "Runnable.cpp" | ||
#include "RWLock.cpp" | ||
#include "Semaphore.cpp" | ||
#include "SynchronizedObject.cpp" | ||
#include "Thread.cpp" | ||
#include "ThreadLocal.cpp" | ||
#include "ThreadPool.cpp" | ||
#include "ThreadTarget.cpp" | ||
#include "Timer.cpp" | ||
#include "ActiveDispatcher.h" | ||
#include "Condition.h" | ||
#include "ErrorHandler.h" | ||
#include "Event.h" | ||
#include "Mutex.h" | ||
#include "Runnable.h" | ||
#include "RWLock.h" | ||
#include "Semaphore.h" | ||
#include "SynchronizedObject.h" | ||
#include "Thread.h" | ||
#include "ThreadLocal.h" | ||
#include "ThreadPool.h" | ||
#include "ThreadTarget.h" | ||
#include "Timer.h" | ||
// URI | ||
#include "FileStreamFactory.cpp" | ||
#include "URI.cpp" | ||
#include "URIStreamFactory.cpp" | ||
#include "URIStreamOpener.cpp" | ||
#include "FileStreamFactory.h" | ||
#include "URI.h" | ||
#include "URIStreamFactory.h" | ||
#include "URIStreamOpener.h" |
#include "LogFile.cpp" | ||
#include "LoggingRegistry.cpp" | ||
#include "SimpleFileChannel.cpp" | ||
#include "Message.cpp" |
Check notice
Code scanning / CodeQL
Include header files only Note
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 16 days ago
To fix the problem, we need to refactor the code to include only header files. This involves the following steps:
- Create corresponding header files (
.h
or.hpp
) for each of the.cpp
files included inFoundation.cpp
. - Move the declarations of classes, functions, and other necessary elements from the
.cpp
files to the newly created header files. - Include these header files in
Foundation.cpp
instead of the.cpp
files.
-
Copy modified lines R2-R15 -
Copy modified lines R17-R21 -
Copy modified lines R23-R26 -
Copy modified line R28 -
Copy modified lines R30-R36 -
Copy modified lines R38-R41 -
Copy modified lines R43-R47 -
Copy modified line R49 -
Copy modified lines R51-R60 -
Copy modified lines R62-R78 -
Copy modified lines R80-R93 -
Copy modified lines R95-R98
@@ -1,98 +1,98 @@ | ||
// Core | ||
#include "Ascii.cpp" | ||
#include "AtomicCounter.cpp" | ||
#include "Bugcheck.cpp" | ||
#include "Debugger.cpp" | ||
#include "Environment.cpp" | ||
#include "Error.cpp" | ||
#include "Exception.cpp" | ||
#include "Format.cpp" | ||
#include "NumberFormatter.cpp" | ||
#include "NumberParser.cpp" | ||
#include "NumericString.cpp" | ||
#include "RefCountedObject.cpp" | ||
#include "StringTokenizer.cpp" | ||
#include "Void.cpp" | ||
#include "Ascii.h" | ||
#include "AtomicCounter.h" | ||
#include "Bugcheck.h" | ||
#include "Debugger.h" | ||
#include "Environment.h" | ||
#include "Error.h" | ||
#include "Exception.h" | ||
#include "Format.h" | ||
#include "NumberFormatter.h" | ||
#include "NumberParser.h" | ||
#include "NumericString.h" | ||
#include "RefCountedObject.h" | ||
#include "StringTokenizer.h" | ||
#include "Void.h" | ||
// DateTime | ||
#include "Clock.cpp" | ||
#include "DateTime.cpp" | ||
#include "Stopwatch.cpp" | ||
#include "Timespan.cpp" | ||
#include "Timestamp.cpp" | ||
#include "Clock.h" | ||
#include "DateTime.h" | ||
#include "Stopwatch.h" | ||
#include "Timespan.h" | ||
#include "Timestamp.h" | ||
// Filesystem | ||
#include "DirectoryIterator.cpp" | ||
#include "File.cpp" | ||
#include "Glob.cpp" | ||
#include "Path.cpp" | ||
#include "DirectoryIterator.h" | ||
#include "File.h" | ||
#include "Glob.h" | ||
#include "Path.h" | ||
// Hashing | ||
#include "Hash.cpp" | ||
#include "Hash.h" | ||
// Logging | ||
#include "AsyncChannel.cpp" | ||
#include "Channel.cpp" | ||
#include "LogFile.cpp" | ||
#include "LoggingRegistry.cpp" | ||
#include "SimpleFileChannel.cpp" | ||
#include "Message.cpp" | ||
#include "Configurable.cpp" | ||
#include "AsyncChannel.h" | ||
#include "Channel.h" | ||
#include "LogFile.h" | ||
#include "LoggingRegistry.h" | ||
#include "SimpleFileChannel.h" | ||
#include "Message.h" | ||
#include "Configurable.h" | ||
// Notifications | ||
#include "AbstractObserver.cpp" | ||
#include "Notification.cpp" | ||
#include "NotificationCenter.cpp" | ||
#include "NotificationQueue.cpp" | ||
#include "AbstractObserver.h" | ||
#include "Notification.h" | ||
#include "NotificationCenter.h" | ||
#include "NotificationQueue.h" | ||
// Processes | ||
#include "NamedEvent.cpp" | ||
#include "Pipe.cpp" | ||
#include "PipeImpl.cpp" | ||
#include "Process.cpp" | ||
#include "SharedMemory.cpp" | ||
#include "NamedEvent.h" | ||
#include "Pipe.h" | ||
#include "PipeImpl.h" | ||
#include "Process.h" | ||
#include "SharedMemory.h" | ||
// RegularExpression | ||
#include "RegularExpression.cpp" | ||
#include "RegularExpression.h" | ||
// Streams | ||
#include "Base64Decoder.cpp" | ||
#include "Base64Encoder.cpp" | ||
#include "BinaryReader.cpp" | ||
#include "BinaryWriter.cpp" | ||
#include "FileStream.cpp" | ||
#include "MemoryStream.cpp" | ||
#include "NullStream.cpp" | ||
#include "Random.cpp" | ||
#include "RandomStream.cpp" | ||
#include "StreamCopier.cpp" | ||
#include "Base64Decoder.h" | ||
#include "Base64Encoder.h" | ||
#include "BinaryReader.h" | ||
#include "BinaryWriter.h" | ||
#include "FileStream.h" | ||
#include "MemoryStream.h" | ||
#include "NullStream.h" | ||
#include "Random.h" | ||
#include "RandomStream.h" | ||
#include "StreamCopier.h" | ||
// Text | ||
#include "ASCIIEncoding.cpp" | ||
#include "Latin1Encoding.cpp" | ||
#include "Latin2Encoding.cpp" | ||
#include "Latin9Encoding.cpp" | ||
#include "StreamConverter.cpp" | ||
#include "TextBufferIterator.cpp" | ||
#include "TextConverter.cpp" | ||
#include "TextEncoding.cpp" | ||
#include "TextIterator.cpp" | ||
#include "Unicode.cpp" | ||
#include "UnicodeConverter.cpp" | ||
#include "UTF8Encoding.cpp" | ||
#include "UTF16Encoding.cpp" | ||
#include "UTF32Encoding.cpp" | ||
#include "Windows1250Encoding.cpp" | ||
#include "Windows1251Encoding.cpp" | ||
#include "Windows1252Encoding.cpp" | ||
#include "ASCIIEncoding.h" | ||
#include "Latin1Encoding.h" | ||
#include "Latin2Encoding.h" | ||
#include "Latin9Encoding.h" | ||
#include "StreamConverter.h" | ||
#include "TextBufferIterator.h" | ||
#include "TextConverter.h" | ||
#include "TextEncoding.h" | ||
#include "TextIterator.h" | ||
#include "Unicode.h" | ||
#include "UnicodeConverter.h" | ||
#include "UTF8Encoding.h" | ||
#include "UTF16Encoding.h" | ||
#include "UTF32Encoding.h" | ||
#include "Windows1250Encoding.h" | ||
#include "Windows1251Encoding.h" | ||
#include "Windows1252Encoding.h" | ||
// Threading | ||
#include "ActiveDispatcher.cpp" | ||
#include "Condition.cpp" | ||
#include "ErrorHandler.cpp" | ||
#include "Event.cpp" | ||
#include "Mutex.cpp" | ||
#include "Runnable.cpp" | ||
#include "RWLock.cpp" | ||
#include "Semaphore.cpp" | ||
#include "SynchronizedObject.cpp" | ||
#include "Thread.cpp" | ||
#include "ThreadLocal.cpp" | ||
#include "ThreadPool.cpp" | ||
#include "ThreadTarget.cpp" | ||
#include "Timer.cpp" | ||
#include "ActiveDispatcher.h" | ||
#include "Condition.h" | ||
#include "ErrorHandler.h" | ||
#include "Event.h" | ||
#include "Mutex.h" | ||
#include "Runnable.h" | ||
#include "RWLock.h" | ||
#include "Semaphore.h" | ||
#include "SynchronizedObject.h" | ||
#include "Thread.h" | ||
#include "ThreadLocal.h" | ||
#include "ThreadPool.h" | ||
#include "ThreadTarget.h" | ||
#include "Timer.h" | ||
// URI | ||
#include "FileStreamFactory.cpp" | ||
#include "URI.cpp" | ||
#include "URIStreamFactory.cpp" | ||
#include "URIStreamOpener.cpp" | ||
#include "FileStreamFactory.h" | ||
#include "URI.h" | ||
#include "URIStreamFactory.h" | ||
#include "URIStreamOpener.h" |
#include "LoggingRegistry.cpp" | ||
#include "SimpleFileChannel.cpp" | ||
#include "Message.cpp" | ||
#include "Configurable.cpp" |
Check notice
Code scanning / CodeQL
Include header files only Note
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 16 days ago
To fix the problem, we need to refactor the code to include only header files. This involves the following steps:
- Create corresponding header files (
*.h
) for each of the included.cpp
files if they do not already exist. - Move the declarations of classes, functions, and other necessary interfaces from the
.cpp
files to the newly created header files. - Replace the
#include
directives for the.cpp
files with#include
directives for the corresponding header files.
-
Copy modified lines R2-R15 -
Copy modified lines R17-R21 -
Copy modified lines R23-R26 -
Copy modified line R28 -
Copy modified lines R30-R36 -
Copy modified lines R38-R41 -
Copy modified lines R43-R47 -
Copy modified line R49 -
Copy modified lines R51-R60 -
Copy modified lines R62-R78 -
Copy modified lines R80-R93 -
Copy modified lines R95-R98
@@ -1,98 +1,98 @@ | ||
// Core | ||
#include "Ascii.cpp" | ||
#include "AtomicCounter.cpp" | ||
#include "Bugcheck.cpp" | ||
#include "Debugger.cpp" | ||
#include "Environment.cpp" | ||
#include "Error.cpp" | ||
#include "Exception.cpp" | ||
#include "Format.cpp" | ||
#include "NumberFormatter.cpp" | ||
#include "NumberParser.cpp" | ||
#include "NumericString.cpp" | ||
#include "RefCountedObject.cpp" | ||
#include "StringTokenizer.cpp" | ||
#include "Void.cpp" | ||
#include "Ascii.h" | ||
#include "AtomicCounter.h" | ||
#include "Bugcheck.h" | ||
#include "Debugger.h" | ||
#include "Environment.h" | ||
#include "Error.h" | ||
#include "Exception.h" | ||
#include "Format.h" | ||
#include "NumberFormatter.h" | ||
#include "NumberParser.h" | ||
#include "NumericString.h" | ||
#include "RefCountedObject.h" | ||
#include "StringTokenizer.h" | ||
#include "Void.h" | ||
// DateTime | ||
#include "Clock.cpp" | ||
#include "DateTime.cpp" | ||
#include "Stopwatch.cpp" | ||
#include "Timespan.cpp" | ||
#include "Timestamp.cpp" | ||
#include "Clock.h" | ||
#include "DateTime.h" | ||
#include "Stopwatch.h" | ||
#include "Timespan.h" | ||
#include "Timestamp.h" | ||
// Filesystem | ||
#include "DirectoryIterator.cpp" | ||
#include "File.cpp" | ||
#include "Glob.cpp" | ||
#include "Path.cpp" | ||
#include "DirectoryIterator.h" | ||
#include "File.h" | ||
#include "Glob.h" | ||
#include "Path.h" | ||
// Hashing | ||
#include "Hash.cpp" | ||
#include "Hash.h" | ||
// Logging | ||
#include "AsyncChannel.cpp" | ||
#include "Channel.cpp" | ||
#include "LogFile.cpp" | ||
#include "LoggingRegistry.cpp" | ||
#include "SimpleFileChannel.cpp" | ||
#include "Message.cpp" | ||
#include "Configurable.cpp" | ||
#include "AsyncChannel.h" | ||
#include "Channel.h" | ||
#include "LogFile.h" | ||
#include "LoggingRegistry.h" | ||
#include "SimpleFileChannel.h" | ||
#include "Message.h" | ||
#include "Configurable.h" | ||
// Notifications | ||
#include "AbstractObserver.cpp" | ||
#include "Notification.cpp" | ||
#include "NotificationCenter.cpp" | ||
#include "NotificationQueue.cpp" | ||
#include "AbstractObserver.h" | ||
#include "Notification.h" | ||
#include "NotificationCenter.h" | ||
#include "NotificationQueue.h" | ||
// Processes | ||
#include "NamedEvent.cpp" | ||
#include "Pipe.cpp" | ||
#include "PipeImpl.cpp" | ||
#include "Process.cpp" | ||
#include "SharedMemory.cpp" | ||
#include "NamedEvent.h" | ||
#include "Pipe.h" | ||
#include "PipeImpl.h" | ||
#include "Process.h" | ||
#include "SharedMemory.h" | ||
// RegularExpression | ||
#include "RegularExpression.cpp" | ||
#include "RegularExpression.h" | ||
// Streams | ||
#include "Base64Decoder.cpp" | ||
#include "Base64Encoder.cpp" | ||
#include "BinaryReader.cpp" | ||
#include "BinaryWriter.cpp" | ||
#include "FileStream.cpp" | ||
#include "MemoryStream.cpp" | ||
#include "NullStream.cpp" | ||
#include "Random.cpp" | ||
#include "RandomStream.cpp" | ||
#include "StreamCopier.cpp" | ||
#include "Base64Decoder.h" | ||
#include "Base64Encoder.h" | ||
#include "BinaryReader.h" | ||
#include "BinaryWriter.h" | ||
#include "FileStream.h" | ||
#include "MemoryStream.h" | ||
#include "NullStream.h" | ||
#include "Random.h" | ||
#include "RandomStream.h" | ||
#include "StreamCopier.h" | ||
// Text | ||
#include "ASCIIEncoding.cpp" | ||
#include "Latin1Encoding.cpp" | ||
#include "Latin2Encoding.cpp" | ||
#include "Latin9Encoding.cpp" | ||
#include "StreamConverter.cpp" | ||
#include "TextBufferIterator.cpp" | ||
#include "TextConverter.cpp" | ||
#include "TextEncoding.cpp" | ||
#include "TextIterator.cpp" | ||
#include "Unicode.cpp" | ||
#include "UnicodeConverter.cpp" | ||
#include "UTF8Encoding.cpp" | ||
#include "UTF16Encoding.cpp" | ||
#include "UTF32Encoding.cpp" | ||
#include "Windows1250Encoding.cpp" | ||
#include "Windows1251Encoding.cpp" | ||
#include "Windows1252Encoding.cpp" | ||
#include "ASCIIEncoding.h" | ||
#include "Latin1Encoding.h" | ||
#include "Latin2Encoding.h" | ||
#include "Latin9Encoding.h" | ||
#include "StreamConverter.h" | ||
#include "TextBufferIterator.h" | ||
#include "TextConverter.h" | ||
#include "TextEncoding.h" | ||
#include "TextIterator.h" | ||
#include "Unicode.h" | ||
#include "UnicodeConverter.h" | ||
#include "UTF8Encoding.h" | ||
#include "UTF16Encoding.h" | ||
#include "UTF32Encoding.h" | ||
#include "Windows1250Encoding.h" | ||
#include "Windows1251Encoding.h" | ||
#include "Windows1252Encoding.h" | ||
// Threading | ||
#include "ActiveDispatcher.cpp" | ||
#include "Condition.cpp" | ||
#include "ErrorHandler.cpp" | ||
#include "Event.cpp" | ||
#include "Mutex.cpp" | ||
#include "Runnable.cpp" | ||
#include "RWLock.cpp" | ||
#include "Semaphore.cpp" | ||
#include "SynchronizedObject.cpp" | ||
#include "Thread.cpp" | ||
#include "ThreadLocal.cpp" | ||
#include "ThreadPool.cpp" | ||
#include "ThreadTarget.cpp" | ||
#include "Timer.cpp" | ||
#include "ActiveDispatcher.h" | ||
#include "Condition.h" | ||
#include "ErrorHandler.h" | ||
#include "Event.h" | ||
#include "Mutex.h" | ||
#include "Runnable.h" | ||
#include "RWLock.h" | ||
#include "Semaphore.h" | ||
#include "SynchronizedObject.h" | ||
#include "Thread.h" | ||
#include "ThreadLocal.h" | ||
#include "ThreadPool.h" | ||
#include "ThreadTarget.h" | ||
#include "Timer.h" | ||
// URI | ||
#include "FileStreamFactory.cpp" | ||
#include "URI.cpp" | ||
#include "URIStreamFactory.cpp" | ||
#include "URIStreamOpener.cpp" | ||
#include "FileStreamFactory.h" | ||
#include "URI.h" | ||
#include "URIStreamFactory.h" | ||
#include "URIStreamOpener.h" |
Added translation for "Add Output Pane for Logs and Messages (WinMerge#2663)"
Added translation for "Add Output Pane for Logs and Messages (#2663)"
Added translation for "Add Output Pane for Logs and Messages (WinMerge#2663) (2)"
Added translation for "Add Output Pane for Logs and Messages (#2663) (2)"
This PR adds an Output Pane for displaying logs and messages.
The Output Pane can be shown in two ways: