Developer forums (C::B DEVELOPMENT STRICTLY!) > Compiler Framework Redesign

XML based compilers

<< < (13/41) > >>

Alpha:

--- Quote from: MortenMacFly on July 13, 2012, 09:46:48 am ---Maybe we can do it even easier: Reset calls ResetPrivate() which is the virtual method you need to override if you need to do something special and in its default implementation it does nothing (same for LoadXXX). This way, compilers were "forced" to use the default "Reset" (which is good I think) but still can do something special. To soften the requirements we could stick with the virtual Reset method. Although it would be not too bad to make Reset even non-virtual and protected in that case.

What do you think?

--- End quote ---
Almost everything I know about program design has been self taught through a combination of the internet, and half-finished books; I do not think I know what is the best option here.
Perhaps other developers would like to weigh in?


--- Quote from: MortenMacFly on July 13, 2012, 09:58:14 am ---For the record: Applies flawlessly in the branch. Nice!

--- End quote ---
Go WinMerge! :)


--- Quote from: MortenMacFly on July 13, 2012, 11:00:43 am ---When running with debug log (and therefore warnings) enabled, now I get tons of warnings, that the command issued to detect the compiler could not be executed.

--- End quote ---
Oops... I will deal with that.

Alpha:
Quick update (nothing big):

* Remove failed execution warnings
* Fix pre-loading of paths on start up (for executable testing)

Alpha:
Adding to the previous patch:

* Scan and dynamically load pure XML compilers
* Implemented some auto-detection routines (all contained in compilerXML.cpp, but they can later be migrated if that is decided)
* (Initial XML files for) LLVM Clang compiler (as a test case for pure XML compilers)
(Unrelated, but...)

--- Code: ---Index: src/sdk/resources/editor_configuration.xrc
===================================================================
--- src/sdk/resources/editor_configuration.xrc (revision 8138)
+++ src/sdk/resources/editor_configuration.xrc (working copy)
@@ -465,7 +465,7 @@
                                 <flag>wxALL|wxEXPAND|wxALIGN_LEFT|wxALIGN_TOP</flag>
                                 <border>4</border>
                               </object>
-                              <label>Colouring andf highlighting options</label>
+                              <label>Colouring and highlighting options</label>
                               <orient>wxVERTICAL</orient>
                             </object>
                             <flag>wxALL|wxEXPAND|wxALIGN_LEFT|wxALIGN_TOP</flag>

--- End code ---

MortenMacFly:

--- Quote from: Alpha on July 18, 2012, 03:33:42 am ---Adding to the previous patch:
[...]

--- End quote ---
Nice, especially the "welcome" of the XML compiler.

BTW: Something that came into my mind: Did you try what happens if you create a copy of a compiler? Dos that still work? I'll try though... I am working with it permanently and so far I see no regressions... Just to let you know that I am not doing "nothing".

Generally @all: Did anybody already try this branch on Linux?

MortenMacFly:
Looks good so far, I got a question: What Clang compiler do you use? Is there a specific one you use under Windows? (A distro?!)

Also, I've attached another compiler I found in my local copy. Its a specific Fortran compiler, but untested - that's why it is not committed. It should work though, I got this ones from "darmar" - the author of the FortranProjectPlugin. Do you have an easy way/tool to convert/add this? Or do I have to do it the monkey way?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version