1==============================
2LLVM Community Code of Conduct
3==============================
4
5.. note::
6
7   This document is currently a **DRAFT** document while it is being discussed
8   by the community.
9
10The LLVM community has always worked to be a welcoming and respectful
11community, and we want to ensure that doesn't change as we grow and evolve. To
12that end, we have a few ground rules that we ask people to adhere to:
13
14* `be friendly and patient`_,
15* `be welcoming`_,
16* `be considerate`_,
17* `be respectful`_,
18* `be careful in the words that you choose and be kind to others`_, and
19* `when we disagree, try to understand why`_.
20
21This isn't an exhaustive list of things that you can't do. Rather, take it in
22the spirit in which it's intended - a guide to make it easier to communicate
23and participate in the community.
24
25This code of conduct applies to all spaces managed by the LLVM project or The
26LLVM Foundation. This includes IRC channels, mailing lists, bug trackers, LLVM
27events such as the developer meetings and socials, and any other forums created
28by the project that the community uses for communication. It applies to all of
29your communication and conduct in these spaces, including emails, chats, things
30you say, slides, videos, posters, signs, or even t-shirts you display in these
31spaces. In addition, violations of this code outside these spaces may, in rare
32cases, affect a person's ability to participate within them, when the conduct
33amounts to an egregious violation of this code.
34
35If you believe someone is violating the code of conduct, we ask that you report
36it by emailing conduct@llvm.org. For more details please see our
37:doc:`Reporting Guide <ReportingGuide>`.
38
39.. _be friendly and patient:
40
41* **Be friendly and patient.**
42
43.. _be welcoming:
44
45* **Be welcoming.** We strive to be a community that welcomes and supports
46  people of all backgrounds and identities. This includes, but is not limited
47  to members of any race, ethnicity, culture, national origin, colour,
48  immigration status, social and economic class, educational level, sex, sexual
49  orientation, gender identity and expression, age, size, family status,
50  political belief, religion or lack thereof, and mental and physical ability.
51
52.. _be considerate:
53
54* **Be considerate.** Your work will be used by other people, and you in turn
55  will depend on the work of others. Any decision you take will affect users
56  and colleagues, and you should take those consequences into account. Remember
57  that we're a world-wide community, so you might not be communicating in
58  someone else's primary language.
59
60.. _be respectful:
61
62* **Be respectful.** Not all of us will agree all the time, but disagreement is
63  no excuse for poor behavior and poor manners. We might all experience some
64  frustration now and then, but we cannot allow that frustration to turn into
65  a personal attack. It's important to remember that a community where people
66  feel uncomfortable or threatened is not a productive one. Members of the LLVM
67  community should be respectful when dealing with other members as well as
68  with people outside the LLVM community.
69
70.. _be careful in the words that you choose and be kind to others:
71
72* **Be careful in the words that you choose and be kind to others.** Do not
73  insult or put down other participants. Harassment and other exclusionary
74  behavior aren't acceptable. This includes, but is not limited to:
75
76  * Violent threats or language directed against another person.
77  * Discriminatory jokes and language.
78  * Posting sexually explicit or violent material.
79  * Posting (or threatening to post) other people's personally identifying
80    information ("doxing").
81  * Personal insults, especially those using racist or sexist terms.
82  * Unwelcome sexual attention.
83  * Advocating for, or encouraging, any of the above behavior.
84
85  In general, if someone asks you to stop, then stop. Persisting in such
86  behavior after being asked to stop is considered harassment.
87
88.. _when we disagree, try to understand why:
89
90* **When we disagree, try to understand why.** Disagreements, both social and
91  technical, happen all the time and LLVM is no exception. It is important that
92  we resolve disagreements and differing views constructively. Remember that
93  we're different. The strength of LLVM comes from its varied community, people
94  from a wide range of backgrounds. Different people have different
95  perspectives on issues. Being unable to understand why someone holds
96  a viewpoint doesn't mean that they're wrong. Don't forget that it is human to
97  err and blaming each other doesn't get us anywhere. Instead, focus on helping
98  to resolve issues and learning from mistakes.
99
100Questions?
101==========
102
103If you have questions, please feel free to contact the LLVM Foundation Code of
104Conduct Advisory Committee by emailing conduct@llvm.org.
105
106
107(This text is based on the `Django Project`_ Code of Conduct, which is in turn
108based on wording from the `Speak Up! project`_.)
109
110.. _Django Project: https://www.djangoproject.com/conduct/
111.. _Speak Up! project: http://speakup.io/coc.html
112
113