Comments (4)
Interesting idea! I don't know the Qt Creator/Prettier source code well enough to say if that is the best way to go about it though.
Another possibility would be to improve the Qt Creator formatter - I am sure they would welcome contributions.
I don't think putting it inside this tool would make sense though, but you are more than welcome to use my tool as a starting point to get something working.
from qmlfmt.
You are more than welcome to use my tool as a starting point to get something working, but I will close this issue, as it is not something I will pursue as part of this tool.
from qmlfmt.
Hi @jesperhh. Thanks for your recommandation!
I've been starting to develop a new project that able us to generate an AST document from a QML file: https://github.com/oltodo/qml-parser. As you see I used your project as a starting point :-).
I'm not at a C++ developer at all so if you look at it closely you would probably be a bit scary. So if you have some advices to give I would be glad.
from qmlfmt.
I looked at a few of the new files, and I think it looks good - the only thing I noticed which looks a bit odd is that you use both #pragma once and #ifndef guards in your headers, only one of them should suffice :-)
And then once your design settles, feel free to remove my name/copyright from the files and optionally add attribution in the readme instead (or leave it out if you want).
from qmlfmt.
Related Issues (20)
- Error on build using Mac OS HOT 23
- No version number output HOT 5
- generating an AST HOT 1
- QML enum is removed HOT 5
- Distributing as a standalone tool HOT 1
- "cannot execute binary file" using prebuilt on macOS HOT 3
- I get some error about the error while loading shared libraries HOT 3
- Indent with tabs HOT 1
- Update QtCreator to 4.0 HOT 6
- More options for format? HOT 2
- Problem with launching cmake HOT 1
- Binaries HOT 2
- Doesn't work with JS lambdas HOT 3
- Difference to qmlformat HOT 1
- Build against Qt Creator 10.x HOT 4
- Properties sorting HOT 1
- import qrc: HOT 4
- Column and line information not shown HOT 1
- Formatting of QML comments HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qmlfmt.