Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jmah/Clang-KeyPathValidator
Early exploration in a clang plugin for checking Cocoa KVC/KVO key paths
https://github.com/jmah/Clang-KeyPathValidator
Last synced: 17 days ago
JSON representation
Early exploration in a clang plugin for checking Cocoa KVC/KVO key paths
- Host: GitHub
- URL: https://github.com/jmah/Clang-KeyPathValidator
- Owner: jmah
- License: other
- Created: 2014-01-26T04:56:33.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-05-26T20:52:53.000Z (over 10 years ago)
- Last Synced: 2024-07-31T22:53:20.322Z (3 months ago)
- Language: C++
- Size: 311 KB
- Stars: 73
- Watchers: 8
- Forks: 4
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Clang Key Path Validator
This is a clang plug-in that performs checking on literal key paths passed to `valueForKeyPath:` and others.
More info in [dev etc: Safe and Sane Key Paths](http://devetc.org/code/2014/05/17/safe-and-sane-key-paths.html)
To download and try it out, go to the [releases page](https://github.com/jmah/Clang-KeyPathValidator/releases).
## Development
The current version of the plug-in works with release_34 of LLVM and clang.
Clone the repository to `llvm/tools/clang/examples/Clang-KeyPathValidator` and run `make` to compile the plugin, and `make run` to do a diagnostic pass over the files in the `tests` directory.## TODO
There are a bunch of tasks tracked in GitHub Issues.
## License
The KeyPathValidator plug-in is released under the same license as LLVM, the [University of Illinois/NCSA Open Source License](http://llvm.org/releases/3.4/LICENSE.TXT).
Copyright (c) 2014 Jonathon Mah.
All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal with
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimers.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimers in the
documentation and/or other materials provided with the distribution.
* Neither the names of the LLVM Team, University of Illinois at
Urbana-Champaign, nor the names of its contributors may be used to
endorse or promote products derived from this Software without specific
prior written permission.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE
SOFTWARE.